AlkantarClanX12

Your IP : 18.116.90.57


Current Path : /proc/thread-self/root/opt/alt/alt-nodejs9/root/lib/node_modules/npm/lib/utils/
Upload File :
Current File : //proc/thread-self/root/opt/alt/alt-nodejs9/root/lib/node_modules/npm/lib/utils/gently-rm.js

// 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)
}