文件操作 - log.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/yaml/dist/log.js
编辑文件内容
'use strict'; var node_process = require('node:process'); function debug(logLevel, ...messages) { if (logLevel === 'debug') console.log(...messages); } function warn(logLevel, warning) { if (logLevel === 'debug' || logLevel === 'warn') { if (typeof node_process.emitWarning === 'function') node_process.emitWarning(warning); else console.warn(warning); } } exports.debug = debug; exports.warn = warn;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件