pub fn private_dir(dir: &Path) -> Result<(), String>
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.
dir