Skip to main content

refused_exists

Function refused_exists 

Source
pub fn refused_exists(path: &str) -> bool
Expand description

Whether path, a name the roots refuse as the system opens it, names a file: a refusal is an Error (or a test’s Warning) only for a file that exists, and a missing one keeps the missing file’s outcome. Any letter case counts, for every refused name alike (most lookups fall back to a case-insensitive match, kpathsea’s casefold; an absolute name has none, and is refused the same way so that a refusal never depends on the file system’s case sensitivity). Only “a file” or “none” is learnt of outside, in the log.