Function |parent
fs/path::|parent
Usage
|parent(path)
Parameters
↳ path:
string
Return
↴ Option<string>
Gives parent path.
Return the path up to the parent of the designated component (/usr
for /usr/bin
, none for /
).
Returns none if the path terminates in a root or prefix.