(path)
| 27 | await fs.writeFile(path, data); |
| 28 | }, |
| 29 | async isDirectory(path) { |
| 30 | try { |
| 31 | const stats = await fs.stat(path); |
| 32 | |
| 33 | return stats.isDirectory(); |
| 34 | } catch { |
| 35 | return false; |
| 36 | } |
| 37 | }, |
| 38 | async isFile(path) { |
| 39 | try { |
| 40 | const stats = await fs.stat(path); |
nothing calls this directly
no test coverage detected