(p: P)
| 10 | } |
| 11 | |
| 12 | pub async fn is_dir<P: AsRef<Path>>(p: P) -> bool { |
| 13 | match fs::metadata(p).await { |
| 14 | Ok(m) => m.is_dir(), |
| 15 | Err(_) => false, |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | pub async fn is_file<P: AsRef<Path>>(p: P) -> bool { |
| 20 | match fs::metadata(p).await { |
no outgoing calls
no test coverage detected