cap_primitives::fs

Function open_parent_dir

Source
pub fn open_parent_dir(
    start: &File,
    ambient_authority: AmbientAuthority,
) -> Result<File>
Expand description

Open the parent directory of a given open directory, using the host process’ ambient authority.

§Ambient Authority

This function accesses a path outside of the start directory subtree.