(path: string | URL)
| 24 | } |
| 25 | |
| 26 | function checkExistsSync(path: string | URL) { |
| 27 | try { |
| 28 | const stated = statSync(path); |
| 29 | return stated.isDirectory; |
| 30 | } catch (e) { |
| 31 | if (e instanceof NotFound) { |
| 32 | return false; |
| 33 | } |
| 34 | throw e; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | Deno.test( |
| 39 | "remove() removes an existing and empty directory", |
no test coverage detected