Crate nu_path

source ·

Re-exports§

Modules§

Macros§

Functions§

  • Like Path::components(), but produces an extra empty component at the end when path contains 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
  • true if 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 PWD environment variable.