Expand description
Functions for working with Path.
Functionsยง
- canonicalize
- Returns the canonical, absolute form of a path with all intermediate components normalized.
- expand
- Performs substitution of
~and environment variables, seeenv::expandandexpand_tilde - expand_
tilde - Expands tilde
~into users home directory if available, otherwise returns the path unchanged. - find_
paths - Returns an iterator of the byte ranges in src that contain a path.
- fold_
home_ dir - Replaces users home directory from
pathwith tilde~if the directory is available, otherwise returns the path unchanged. - get_
path_ suffix - If
srcends with a path then this function returns the part of the slice. - get_
relative_ path - Convert path into a relative path
- get_
truncated_ path - Returns a truncated filepath where the basepart of the path is reduced to the first char of the folder and the whole filename appended.
- home_
dir - A convenience function that wraps the
home_dirfunction from the standard library. - normalize
- Normalize a path without resolving symlinks.