mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-07 15:27:21 +00:00
push all website files
This commit is contained in:
21
website/node_modules/npm/lib/utils/gently-rm.js
generated
vendored
Normal file
21
website/node_modules/npm/lib/utils/gently-rm.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// only remove the thing if it's a symlink into a specific folder. This is
|
||||
// a very common use-case of npm's, but not so common elsewhere.
|
||||
|
||||
exports = module.exports = gentlyRm
|
||||
|
||||
var gentleFS = require('gentle-fs')
|
||||
var gentleFSOpts = require('../config/gentle-fs.js')
|
||||
|
||||
function gentlyRm (target, gently, base, cb) {
|
||||
if (!cb) {
|
||||
cb = base
|
||||
base = undefined
|
||||
}
|
||||
|
||||
if (!cb) {
|
||||
cb = gently
|
||||
gently = false
|
||||
}
|
||||
|
||||
return gentleFS.rm(target, gentleFSOpts(gently, base), cb)
|
||||
}
|
Reference in New Issue
Block a user