fediversity.eu/node_modules/fs-extra/lib/remove/index.js

18 lines
331 B
JavaScript
Raw Normal View History

2024-03-26 16:28:28 +01:00
'use strict'
const fs = require('graceful-fs')
const u = require('universalify').fromCallback
function remove (path, callback) {
fs.rm(path, { recursive: true, force: true }, callback)
}
function removeSync (path) {
fs.rmSync(path, { recursive: true, force: true })
}
module.exports = {
remove: u(remove),
removeSync
}