A general, non-filesystem-specific pathname library.
Returns just the basename of
path, with any directory
path does not contain a directory separator,
return the whole
path ends in a directory
separator (i.e. path is a directory), or is empty, return the
Returns just the directory of
path is relative (or empty), return
Returns the rightmost extension of
path, not including the
".". If there is no extension, returns
extension will always be non-empty and contain no
path with the extension, if any, removed,
along with the
path with the extension, if any, replaced
path with any leading ../ removed.
path is an absolute path,
i.e. begins with "/".
path is a relative path.
Returns the suffix of
path relative to the directory
path is not contained in
dir. If the two are the same (modulo a trailing
"." is returned.
path relative to the given directory. Returns
path unchanged if already absolute.
Returns a normalized version of path, with duplicate directory
separators removed and "/./" and "x/../" references removed.
Does not take symbolic links into account - this is meant to
be abstract and applicable to paths on remote systems and in
path itself if
path is already
Return a new string representing the path where each of
is a path component, separated with the directory separator.
args may include symbols and integers, in addition to