pub fn set_path_read_only(path: &Path) -> Result<(), Error>
Recursively sets a directory and its contents to be read-only.
Returns an error if the permission change fails.