文件操作 - _async-local-storage.cjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/unenv/runtime/node/async_hooks/_async-local-storage.cjs
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AsyncLocalStorage = void 0; class _AsyncLocalStorage { __unenv__ = true; _currentStore; _enterStore; _enabled = true; getStore() { return this._currentStore ?? this._enterStore; } disable() { this._enabled = false; } enable() { this._enabled = true; } enterWith(store) { this._enterStore = store; } run(store, callback, ...args) { this._currentStore = store; const res = callback(...args); this._currentStore = void 0; return res; } exit(callback, ...args) { const _previousStore = this._currentStore; this._currentStore = void 0; const res = callback(...args); this._currentStore = _previousStore; return res; } static snapshot() { throw new Error("[unenv] `AsyncLocalStorage.snapshot` is not implemented!"); } } const AsyncLocalStorage = exports.AsyncLocalStorage = globalThis.AsyncLocalStorage || _AsyncLocalStorage;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件