(repoPath: string, filePath: string, content: Buffer | string)
| 47 | } |
| 48 | |
| 49 | export async function writeFile(repoPath: string, filePath: string, content: Buffer | string) { |
| 50 | const resolvedPath = await resolveNewRepoPath(repoPath, filePath); |
| 51 | await fs.mkdir(path.dirname(resolvedPath), { recursive: true }); |
| 52 | await fs.writeFile(resolvedPath, content); |
| 53 | } |
| 54 | |
| 55 | export async function deleteFile(repoPath: string, filePath: string) { |
| 56 | const resolvedPath = await resolveNewRepoPath(repoPath, filePath); |
no test coverage detected