文件操作 - context.mjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nitropack/dist/runtime/internal/context.mjs
编辑文件内容
import { AsyncLocalStorage } from "node:async_hooks"; import { createError } from "h3"; import { getContext } from "unctx"; export const nitroAsyncContext = getContext("nitro-app", { asyncContext: import.meta._asyncContext, AsyncLocalStorage: import.meta._asyncContext ? AsyncLocalStorage : void 0 }); export function useEvent() { try { return nitroAsyncContext.use().event; } catch { const hint = import.meta._asyncContext ? "Note: This is an experimental feature and might be broken on non-Node.js environments." : "Enable the experimental flag using `experimental.asyncContext: true`."; throw createError({ message: `Nitro request context is not available. ${hint}` }); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件