(path: &Path)
| 701 | } |
| 702 | |
| 703 | fn has_current_dir_segment(path: &Path) -> bool { |
| 704 | let text = path.to_string_lossy(); |
| 705 | text == "." |
| 706 | || text.starts_with("./") |
| 707 | || text.starts_with(".\\") |
| 708 | || text.ends_with("/.") |
| 709 | || text.ends_with("\\.") |
| 710 | || text.contains("/./") |
| 711 | || text.contains("\\.\\") |
| 712 | } |
| 713 | |
| 714 | #[cfg(unix)] |
| 715 | fn set_private_dir_permissions(path: &Path) -> std::io::Result<()> { |
no test coverage detected