(p: P)
| 6 | |
| 7 | impl Filesystem { |
| 8 | pub async fn exists<P: AsRef<Path>>(p: P) -> bool { |
| 9 | fs::metadata(p).await.is_ok() |
| 10 | } |
| 11 | |
| 12 | pub async fn is_dir<P: AsRef<Path>>(p: P) -> bool { |
| 13 | match fs::metadata(p).await { |
no outgoing calls
no test coverage detected