mirror of
https://github.com/jprichardson/node-fs-extra.git
synced 2026-01-25 16:42:57 +00:00
We aren't using rimraf's glob support, and glob is a rather large dependency. Changes: - Remove glob support from rimraf - Remove move()'s dependency on rimraf; use fs-extra.remove instead - Make rimraf a devDependency; it is used in the tests
16 lines
339 B
JavaScript
16 lines
339 B
JavaScript
var rimraf = require('./rimraf')
|
|
|
|
function removeSync (dir) {
|
|
return rimraf.sync(dir, {disableGlob: true})
|
|
}
|
|
|
|
function remove (dir, callback) {
|
|
var options = {disableGlob: true}
|
|
return callback ? rimraf(dir, options, callback) : rimraf(dir, options, function () {})
|
|
}
|
|
|
|
module.exports = {
|
|
remove: remove,
|
|
removeSync: removeSync
|
|
}
|