Skip to main content

Module paths

Module paths 

Source
Expand description

Workspace-relative paths.

Constants§

CASE_INSENSITIVE_FS
Whether the local filesystem is assumed case-insensitive.

Functions§

is_valid_rel
A well-formed workspace-relative POSIX path that cannot escape the root. Rejects paths with drive-letter prefixes in any segment (e.g., C:, x:) to prevent escaping on Windows, where PathBuf::push replaces the whole path if given a drive prefix.
rel_from_native
The POSIX workspace-relative form of abs.
representable
Whether this OS can hold a file at rel.
representable_on
Whether an OS (Windows when windows, otherwise POSIX) can hold a file at rel.
to_native
Join a POSIX workspace-relative path onto root.