文件操作 - gentle-fs.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/n/versions/node/12.18.0/lib/node_modules/npm/lib/config/gentle-fs.js
编辑文件内容
'use strict' const npm = require('../npm.js') const log = require('npmlog') module.exports = gentleFSOpts function gentleFSOpts (gently, base, abs) { return { // never rm the root, prefix, or bin dirs // // globals included because of `npm link` -- as far as the package // requesting the link is concerned, the linked package is always // installed globally prefixes: [ npm.prefix, npm.globalPrefix, npm.dir, npm.root, npm.globalDir, npm.bin, npm.globalBin ], absolute: abs, log: log, prefix: npm.prefix, force: npm.config.get('force'), gently: gently, base: base, name: 'npm' } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件