(p: P)
| 17 | } |
| 18 | |
| 19 | pub async fn is_file<P: AsRef<Path>>(p: P) -> bool { |
| 20 | match fs::metadata(p).await { |
| 21 | Ok(m) => m.is_file(), |
| 22 | Err(_) => false, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | #[cfg(windows)] |
| 27 | pub fn normalize_path(p: &str) -> std::io::Result<String> { |
no outgoing calls
no test coverage detected