文件操作 - index.cjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/package-manager-detector/dist/index.cjs
编辑文件内容
'use strict'; const commands = require('./commands.cjs'); const constants = require('./constants.cjs'); const detect = require('./detect.cjs'); require('node:fs'); require('node:fs/promises'); require('node:path'); require('node:process'); exports.COMMANDS = commands.COMMANDS; exports.constructCommand = commands.constructCommand; exports.resolveCommand = commands.resolveCommand; exports.AGENTS = constants.AGENTS; exports.INSTALL_PAGE = constants.INSTALL_PAGE; exports.LOCKS = constants.LOCKS; exports.detect = detect.detect; exports.detectSync = detect.detectSync; exports.getUserAgent = detect.getUserAgent;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件