(path: string, content: string, mode: 'rewrite' | 'append' = 'rewrite')
| 60 | } |
| 61 | |
| 62 | async write(path: string, content: string, mode: 'rewrite' | 'append' = 'rewrite'): Promise<void> { |
| 63 | if (mode === 'append') { |
| 64 | await fs.appendFile(path, content); |
| 65 | } else { |
| 66 | await fs.writeFile(path, content); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | async getInfo(path: string): Promise<FileInfo> { |
| 71 | const stats = await fs.stat(path); |
nothing calls this directly
no outgoing calls
no test coverage detected