(destFilePath: string, log = true)
| 142 | } |
| 143 | |
| 144 | deleteFile(destFilePath: string, log = true): FileSystem { |
| 145 | if(fs.existsSync(destFilePath)) { |
| 146 | if(log) console.log('Removing File: ' + destFilePath) |
| 147 | fs.unlinkSync(destFilePath) |
| 148 | } |
| 149 | |
| 150 | return this |
| 151 | } |
| 152 | |
| 153 | deleteFolder(folderPath: string, allowed = false, log = true): FileSystem { |
| 154 | if(!allowed) { |
no test coverage detected