documentit/node_modules/fs-extra/lib/remove/index.js

15 lines
262 B
JavaScript
Raw Normal View History

2018-01-05 18:48:13 +00:00
var rimraf = require('rimraf')
function removeSync (dir) {
return rimraf.sync(dir)
}
function remove (dir, callback) {
return callback ? rimraf(dir, callback) : rimraf(dir, function () {})
}
module.exports = {
remove: remove,
removeSync: removeSync
}