Module path

Module path 

Source
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§

PathLike
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 true if 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 true if 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.