Skip to content

Commit

Permalink
rm dir with fse
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed Dec 7, 2016
1 parent c4113fd commit a64a2bd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/cli/core/utils/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,8 @@ export function addFolder(folderPath) {
}

export function removeFolder(folderPath) {
execPromise.exec('rm -rf ' + path.join(config.root, folderPath)).then(function (result) {
var stdout = result.stdout
var stderr = result.stderr
if(stdout) console.log('stdout: ', stdout)
if(stderr) console.log('stderr: ', stderr)
fse.remove(path.join(config.root, folderPath), function (err) {
if (err) return console.error(err)
})
return folderPath
}
Expand Down

0 comments on commit a64a2bd

Please sign in to comment.