文件操作 - github.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/unstorage/drivers/github.d.ts
编辑文件内容
export interface GithubOptions { /** * The name of the repository. (e.g. `username/my-repo`) * Required */ repo: string; /** * The branch to fetch. (e.g. `dev`) * @default "main" */ branch?: string; /** * @default "" */ dir?: string; /** * @default 600 */ ttl?: number; /** * Github API token (recommended) */ token?: string; /** * @default "https://api.github.com" */ apiURL?: string; /** * @default "https://raw.githubusercontent.com" */ cdnURL?: string; } declare const _default: (opts: GithubOptions) => import("..").Driver<GithubOptions, never>; export default _default;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件