Module libpijul::path [−][src]
Expand description
Treating strings as paths. For portability reasons, paths must internally be treated as strings, and converted to paths only by the backend, if required (in-memory backends will typically not need that conversion).
Structs
Functions
Returns an iterator of the non-empty components of a path,
delimited by /
. Note that .
and ..
are treated as
components.
Returns the file name of the path. if it exists. This function
tries to replicate the behaviour of std::path::Path::file_name
,
but with &str
instead of Path
.
Returns the parent of the path, if it exists. This function tries
to replicate the behaviour of std::path::Path::parent
, but with
&str
instead of Path
.
Pop the last component off an existing path.
Push a path component on an existing path. Only works if extra
is a relative path.