Code Review
/
vnfsdk
/
refrepo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug:Fix file validation issue
[vnfsdk/refrepo.git]
/
vnfmarket
/
src
/
main
/
webapp
/
vnfmarket
/
node_modules
/
fs-extra
/
lib
/
remove
/
index.js
1
var rimraf = require('rimraf')
2
3
function removeSync (dir) {
4
return rimraf.sync(dir)
5
}
6
7
function remove (dir, callback) {
8
return callback ? rimraf(dir, callback) : rimraf(dir, function () {})
9
}
10
11
module.exports = {
12
remove: remove,
13
removeSync: removeSync
14
}