Skip to main content

private_dir

Function private_dir 

Source
pub fn private_dir(dir: &Path) -> Result<(), String>
Expand description

Create dir (mode 0700) or check that the existing one belongs to this user and is closed to everyone else. Never loosens or takes over a directory it does not own.