文件操作 - clean.js
返回文件管理
返回主菜单
删除本文件
文件: /opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/lib/clean.js
编辑文件内容
'use strict' const rm = require('rimraf') const log = require('npmlog') function clean (gyp, argv, callback) { // Remove the 'build' dir var buildDir = 'build' log.verbose('clean', 'removing "%s" directory', buildDir) rm(buildDir, callback) } module.exports = clean module.exports.usage = 'Removes any generated build files and the "out" dir'
修改文件时间
将文件时间修改为当前时间的前一年
删除文件