(p: string, data: string, opts?: { exclusive?: boolean })
| 60 | return fs.readFile(p, 'utf8'); |
| 61 | }, |
| 62 | async writeFile(p: string, data: string, opts?: { exclusive?: boolean }): Promise<void> { |
| 63 | await fs.writeFile(p, data, { encoding: 'utf8', flag: opts?.exclusive ? 'wx' : 'w' }); |
| 64 | }, |
| 65 | async mkdir(p: string): Promise<void> { |
| 66 | await fs.mkdir(p, { recursive: true }); |
| 67 | }, |
no test coverage detected