initial commit
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
const rimraf = require('./rimraf')
|
||||
|
||||
function removeSync (dir) {
|
||||
return rimraf.sync(dir, {disableGlob: true})
|
||||
}
|
||||
|
||||
function remove (dir, callback) {
|
||||
const options = {disableGlob: true}
|
||||
return callback ? rimraf(dir, options, callback) : rimraf(dir, options, function () {})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
remove,
|
||||
removeSync
|
||||
}
|
||||
Reference in New Issue
Block a user