std::permissions::separator
Whether \ separates path segments, which depends on the target: on
Windows it does, as / does; on Linux, macOS and WebAssembly it is an
ordinary byte of a file name.
API at a glance
Section titled “API at a glance”Functions: backslash_separates
Functions
Section titled “Functions”backslash_separates
Section titled “backslash_separates”pub fn backslash_separates() -> BoolWhether \ separates path segments on this target: true on Windows,
false everywhere else. Where it does not, granted\evil is a directory
beside granted and not inside it.
Khora 0.4.0built fromee766ae43388on 2026-11-26 22:56ZVersioningSecurityContributingReleasesSource