(path: string | URL)
| 28 | } |
| 29 | |
| 30 | function pathExists(path: string | URL): boolean { |
| 31 | try { |
| 32 | statSync(path); |
| 33 | return true; |
| 34 | } catch { |
| 35 | return false; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | Deno.test("writeFile() writes to a file", async () => { |
| 40 | const tempDirPath = await makeTempDir({ prefix: "writeFile_" }); |
no test coverage detected