Structs§
- Normalize
Error - Path
Matcher - Path
With Position - 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. - Remote
Path Buf - Sanitized
Path - 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§
- Path
Style - Sort
Mode - Controls how files and directories are ordered relative to each other.
- Sort
Order - Controls the lexicographic sorting of file and folder names.
Constants§
- FILE_
ROW_ COLUMN_ DELIMITER - A delimiter to use in
path_query:row_number:column_numberstrings parsing.
Traits§
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.jsonresolves 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 restrictnameto ASCII; for ASCII inputseq_ignore_ascii_caseis 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