(_path: string, contents: string)
| 46 | } |
| 47 | |
| 48 | async write(_path: string, contents: string): Promise<void> { |
| 49 | const file = this.canonical(_path); |
| 50 | fs.writeFileSync(file, contents); |
| 51 | } |
| 52 | |
| 53 | private canonical(_path: string): string { |
| 54 | return path.posix.join(this.base, _path); |