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.