文件操作 - settings.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nodelib/fs.stat/out/settings.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("./adapters/fs"); class Settings { constructor(_options = {}) { this._options = _options; this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); this.fs = fs.createFileSystemAdapter(this._options.fs); this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); } _getValue(option, value) { return option !== null && option !== void 0 ? option : value; } } exports.default = Settings;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件