(dirPath)
| 18 | } |
| 19 | |
| 20 | export function cleanDir (dirPath) { |
| 21 | fs.removeSync(path.normalize(path.join(dirPath, '.well-known/.acl'))) |
| 22 | fs.removeSync(path.normalize(path.join(dirPath, '.acl'))) |
| 23 | fs.removeSync(path.normalize(path.join(dirPath, 'favicon.ico'))) |
| 24 | fs.removeSync(path.normalize(path.join(dirPath, 'favicon.ico.acl'))) |
| 25 | fs.removeSync(path.normalize(path.join(dirPath, 'index.html'))) |
| 26 | fs.removeSync(path.normalize(path.join(dirPath, 'index.html.acl'))) |
| 27 | fs.removeSync(path.normalize(path.join(dirPath, 'robots.txt'))) |
| 28 | fs.removeSync(path.normalize(path.join(dirPath, 'robots.txt.acl'))) |
| 29 | } |
| 30 | |
| 31 | export function write (text, file) { |
| 32 | return fs.writeFileSync(path.normalize(path.join(__dirname, '../resources/' + file)), text) |
no outgoing calls
no test coverage detected