(filePath: string, content: string)
| 228 | } |
| 229 | |
| 230 | static async writeFile(filePath: string, content: string): Promise<void> { |
| 231 | const dir = path.dirname(filePath); |
| 232 | await this.createDirectory(dir); |
| 233 | await fs.writeFile(filePath, content, 'utf-8'); |
| 234 | } |
| 235 | |
| 236 | static async readFile(filePath: string): Promise<string> { |
| 237 | return await fs.readFile(filePath, 'utf-8'); |