mirror of
https://github.com/deployphp/action.git
synced 2024-11-30 15:29:03 +00:00
18 lines
331 B
JavaScript
18 lines
331 B
JavaScript
'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
|
|
}
|