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