pub fn exists<P: AsRef<Path>>(path: P) -> bool
Expand description
Returns true if the path points to a file that exists on the filesystem.
Unlike in the standard library, this function cannot fail because there are not permissions.
ยงExamples
use vexide::fs::*;
assert!(exists("existent.txt"));
assert!(!exists("nonexistent.txt"));