Skip to main content

create_private_dir_all

Function create_private_dir_all 

Source
fn create_private_dir_all(path: &Path) -> Result<()>
Expand description

create_dir_all, but every directory it creates is 0700 on Unix, whatever the umask: a profile can hold credentials, so other local users should not be able to list it. A directory that already exists keeps its mode.