(p: string)
| 57 | } |
| 58 | }, |
| 59 | async readFile(p: string): Promise<string> { |
| 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 | }, |