Re-exports§
pub use expansions::canonicalize_with;pub use expansions::expand_path_with;pub use expansions::expand_to_real_path;pub use expansions::locate_in_dirs;
Modules§
Macros§
Functions§
- Like
Path::components(), but produces an extra empty component at the end whenpathcontains a trailing slash. - Get the old default config directory. Outside of Linux, this will ignore
XDG_CONFIG_HOME - Expand tilde (“~”) into a home directory if it is the first path component
trueif the path has a trailing slash, including if it’s the root directory.- Strip any trailing slashes from a non-root path. This is required in some contexts, for example for the
PWDenvironment variable.