(relPath: string, content: string)
| 369 | } |
| 370 | |
| 371 | async writeFile(relPath: string, content: string): Promise<void> { |
| 372 | const absPath = this.abs(relPath); |
| 373 | await fsPromises.mkdir(path.dirname(absPath), { recursive: true }); |
| 374 | await writeFileAtomic(absPath, content, { encoding: "utf-8" }); |
| 375 | } |
| 376 | |
| 377 | async remove(relPath: string): Promise<void> { |
| 378 | await fsPromises.rm(this.abs(relPath), { recursive: true, force: true }); |