文件操作 - FileDiagnosticManager.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/vite-plugin-checker/dist/esm/FileDiagnosticManager.js
编辑文件内容
class FileDiagnosticManager { constructor() { this.diagnostics = []; } /** * Initialize and reset the diagnostics array */ initWith(diagnostics) { this.diagnostics = [...diagnostics]; } getDiagnostics(fileName) { if (fileName) { return this.diagnostics.filter((f) => f.id === fileName); } return this.diagnostics; } updateByFileId(fileId, next) { this.diagnostics = this.diagnostics.filter((d) => d.id !== fileId); if (next == null ? void 0 : next.length) { this.diagnostics.push(...next); } } } export { FileDiagnosticManager }; //# sourceMappingURL=FileDiagnosticManager.js.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件