文件操作 - index.cjs
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/find-up/index.cjs
编辑文件内容
const { findUp, findUpSync, findUpMultiple, findUpMultipleSync, findUpStop, pathExists, pathExistsSync } = require("./findUp.cjs"); const res = (...args) => { return findUp(...args); } // old API res.sync = findUpSync; res.exists = pathExists; res.sync.exists = pathExistsSync; res.stop = findUpStop; // This is for package which sources are ECMA and build files are // Commonjs res.findUp = findUp; // new API res.findUpSync = findUpSync; res.findUpMultiple = findUpMultiple; res.findUpMultipleSync = findUpMultipleSync; res.pathExists = pathExists; res.findUpStop = findUpStop; module.exports = res;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件