Expand description
Functions for working with Unicode file system paths.
Macros§
- join
- Joins multiple paths together.
- normalize
- Joins multiple paths together and then normalizes the result.
- resolve
- Joins multiple paths together and then resolves the result.
Constants§
- SEPARATOR
- The primary separator of path components for the current platform.
Traits§
- Path
Like - A trait for values that can be used in path operations.
Functions§
- append
- Appends a relative path to a base path.
- as_std
- Converts a value into a
&Path. - is_
absolute - Returns
trueif the given path is absolute. - is_
separator - Determines whether the character is one of the permitted path separators for the current platform.
- join
- Joins a base path and a relative path.
- last
- Returns the last component of the path.
- normalize
- Normalizes a path.
- normalized
- Returns a normalized version of the given path.
- parent
- Returns the parent of the given path.
- pop
- Removes the last component from the path and returns it.
- resolve
- Resolves the given path into an absolute, normalized path.
- resolved
- Returns an absolute, normalized version of the given path.
- starts_
with - Returns
trueif the first path starts with the second path. - with_
trailing_ sep - Returns the given path with a trailing separator if it does not already have one.