(path: &Path)
| 517 | |
| 518 | #[cfg(unix)] |
| 519 | fn set_executable(path: &Path) -> io::Result<()> { |
| 520 | use std::os::unix::fs::PermissionsExt; |
| 521 | |
| 522 | let mut permissions = fs::metadata(path)?.permissions(); |
| 523 | permissions.set_mode(0o755); |
| 524 | fs::set_permissions(path, permissions) |
| 525 | } |
| 526 | |
| 527 | #[cfg(not(unix))] |
| 528 | fn set_executable(_path: &Path) -> io::Result<()> { |
no test coverage detected