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