文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/unstorage/drivers/utils/index.d.ts
编辑文件内容
import type { Driver } from "../.."; type DriverFactory<OptionsT, InstanceT> = (opts: OptionsT) => Driver<OptionsT, InstanceT>; interface ErrorOptions { } export declare function defineDriver<OptionsT = any, InstanceT = never>(factory: DriverFactory<OptionsT, InstanceT>): DriverFactory<OptionsT, InstanceT>; export declare function normalizeKey(key: string | undefined, sep?: ":" | "/"): string; export declare function joinKeys(...keys: string[]): string; export declare function createError(driver: string, message: string, opts?: ErrorOptions): Error; export declare function createRequiredError(driver: string, name: string | string[]): Error; export {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件