(root, filePath, content)
| 15 | } |
| 16 | |
| 17 | function write(root, filePath, content) { |
| 18 | const fullPath = join(root, filePath); |
| 19 | mkdirSync(dirname(fullPath), { recursive: true }); |
| 20 | writeFileSync(fullPath, content); |
| 21 | } |
| 22 | |
| 23 | function read(root, filePath) { |
| 24 | return readFileSync(join(root, filePath), "utf8"); |
no outgoing calls
no test coverage detected