(root: string, files: Record<string, string>)
| 437 | } |
| 438 | |
| 439 | function write(root: string, files: Record<string, string>): void { |
| 440 | for (const [rel, content] of Object.entries(files)) { |
| 441 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 442 | fs.writeFileSync(path.join(root, rel), content); |
| 443 | } |
| 444 | } |
| 445 | |
| 446 | /** Set a file's content, or remove the file for null. */ |
| 447 | function put(root: string, rel: string, content: string | null): void { |
no test coverage detected