Module path

Module path 

Source
Expand description

Helper functions and types for paths.

Functionsยง

common_ancestor
Returns the lexical common ancestor of two paths if there is any. This means it will not canonicalize paths.
is_ancestor_of
Returns whether base is a lexical ancestor of path. This means it will not canonicalize paths and may not always be correct (e.g. in the presence of symlinks or filesystem mounts).