MCPcopy Index your code
hub / github.com/socketstream/socketstream / removeForcefully

Function removeForcefully

test/unit/cli/generate.test.js:23–27  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

21 * @return {Void}
22 */
23function removeForcefully (dirPath, cb) {
24 exec('rm -rf '+ dirPath, function(err){
25 cb(err);
26 });
27}
28
29/**
30 * Executes a child process to forcefully remove

Callers 1

removeDirectoryIfExistsFunction · 0.85

Calls 2

execFunction · 0.85
cbFunction · 0.50

Tested by

no test coverage detected