文件操作 - gently-rm.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/n/versions/node/12.18.0/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) }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件