* Executes a child process to forcefully remove * a directory containing files * * @param {String} dirPath The path of the directory to remove * @param {Function} cb The function to execute when finished * @return {Void}
(dirPath, cb)
| 35 | * @return {Void} |
| 36 | */ |
| 37 | function removeDirectoryIfExists (dirPath, cb) { |
| 38 | fs.exists(dirPath, function(exists){ |
| 39 | if (exists) { |
| 40 | removeForcefully(dirPath, cb); |
| 41 | } else { |
| 42 | cb(); |
| 43 | } |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | describe('lib/cli/generate', function () { |
| 48 |
no test coverage detected