(path: &Path, mode: u32)
| 5357 | |
| 5358 | #[cfg(unix)] |
| 5359 | fn set_mode(path: &Path, mode: u32) -> Result<(), RepositoryError> { |
| 5360 | use std::os::unix::fs::PermissionsExt; |
| 5361 | fs::set_permissions(path, fs::Permissions::from_mode(mode)).map_err(RepositoryError::Io) |
| 5362 | } |
| 5363 | |
| 5364 | #[cfg(not(unix))] |
| 5365 | fn set_mode(path: &Path, mode: u32) -> Result<(), RepositoryError> { |