Skip to main content

path_exists

Function path_exists 

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

Probe whether a filesystem path is accessible and exists.

NOTE: This follows symbolic links. It uses libc::access with F_OK so the check is a single syscall with no Rust allocator involvement. Returns true if the path is accessible or visible, false on any error (including ENOENT, EACCES, or invalid path bytes).