(filePath: string, content: Buffer | string)
| 33 | } |
| 34 | |
| 35 | export async function writeFile(filePath: string, content: Buffer | string) { |
| 36 | await fs.mkdir(path.dirname(filePath), { recursive: true }); |
| 37 | await fs.writeFile(filePath, content); |
| 38 | } |
| 39 | |
| 40 | export async function deleteFile(repoPath: string, filePath: string) { |
| 41 | await fs.unlink(path.join(repoPath, filePath)).catch(() => undefined); |
no outgoing calls
no test coverage detected