egaia parsefn

Parse a given filename and return the basename, uuid, and extension. This is intended primarily as a utility function for other tools. If only the filename is given, a triple is returned containing the base, uuid, and extension of the filename.

Usage

egaia parsefn --help
egaia parsefn [ --base | --uuid | --ext ] FILENAME

Options

--help
Show this help text and exit.
--base
Print only the base part of the tagged filename.
--uuid
Print only the UUID in a tagged filename (or None). This tool will also correctly return the UUID if a bare identifier is provided, so it can be used in scripts that call for either a filename or UUID.
--ext
Print only the extension of a tagged filename.