pub fn restrict_to_owner(path: &Path) -> Result<()>Expand description
Restrict path (a directory) to the current user. On Unix this is a real
0700; on Windows it replaces the DACL with a single owner-only ACE and
marks it protected so no inherited Everyone/BUILTIN\Users grant
survives. Mirrors chmod 0700.