keen/io/path
Sourceget-extension string option(name string)Gets the extension from a file name or path. Returns an empty option if there is no extension.
remove-extension string(name string)Removes the extension from a file name or path. This returns the path without the extension.
For example: "birds/keen.txt" remove-extension is "birds/keen".
add-extension string(name string, ext string)Adds an extension to a file name or path. If an extension already exists, adds a second one, as in
foo.png.txt.
Functions for operating on paths. There is technically no I/O here; for functions like reading from a path, see
keen/io/file.Parent of a path. This means removing the last path component.
""if the path has no parent.