cap_primitives::fs

Function access

source
pub fn access(
    start: &File,
    path: &Path,
    type_: AccessType,
    follow: FollowSymlinks,
) -> Result<()>
Expand description

Canonicalize the given path, ensuring that the resolution of the path never escapes the directory tree rooted at start.