文件操作 - sync.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nodelib/fs.stat/out/providers/sync.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.read = void 0; function read(path, settings) { const lstat = settings.fs.lstatSync(path); if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { return lstat; } try { const stat = settings.fs.statSync(path); if (settings.markSymbolicLink) { stat.isSymbolicLink = () => true; } return stat; } catch (error) { if (!settings.throwErrorOnBrokenSymbolicLink) { return lstat; } throw error; } } exports.read = read;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件