Skip to main content

Module paths

Module paths 

Source

Structs§

NormalizeError
PathMatcher
PathWithPosition
A representation of a path-like string with optional row and column numbers. Matching values example: te, test.rs:22, te:22:5, test.c(22), test.c(22,5)etc.
RemotePathBuf
SanitizedPath
In memory, this is identical to Path. On non-Windows conversions to this type are no-ops. On windows, these conversions sanitize UNC paths by removing the \\\\?\\ prefix.
WslPath

Enums§

PathStyle
SortMode
Controls how files and directories are ordered relative to each other.
SortOrder
Controls the lexicographic sorting of file and folder names.

Constants§

FILE_ROW_COLUMN_DELIMITER
A delimiter to use in path_query:row_number:column_number strings parsing.

Traits§

PathExt
UrlExt

Functions§

compare_paths
compare_rel_paths
compare_rel_paths_by
component_matches_ignore_ascii_case
Case-insensitive ASCII comparison of a path component to a literal folder name. macOS and Windows use case-insensitive filesystems by default, so a path like .ZED/settings.json resolves to the same inode as the lowercase form. A case-sensitive == check would miss those and let a malicious settings author bypass classifiers with unusual casing. Callers should restrict name to ASCII; for ASCII inputs eq_ignore_ascii_case is safe and stable across platforms.
home_dir
Returns the path to the user’s home directory.
is_absolute
natural_sort
Performs natural sorting comparison between two strings.
normalize_lexically
Copied from stdlib where it’s unstable.
path_ends_with
strip_path_suffix