文件操作 - fs.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/node_modules/npm/node_modules/@npmcli/fs/lib/fs.js
编辑文件内容
const fs = require('fs') const promisify = require('@gar/promisify') // this module returns the core fs module wrapped in a proxy that promisifies // method calls within the getter. we keep it in a separate module so that the // overridden methods have a consistent way to get to promisified fs methods // without creating a circular dependency module.exports = promisify(fs)
修改文件时间
将文件时间修改为当前时间的前一年
删除文件