Skip to main content

restrict_to_owner

Function restrict_to_owner 

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

Restrict a file to its owner. Unix sets mode 0600; Windows replaces the access list with a protected one that allows only the current user (winacl).