From 9fb118bd71f17e63e9bda40331e346823d5cca05 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Sun, 1 Feb 2026 17:47:11 +0800 Subject: [PATCH] test --- query/query-resources/index.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/query/query-resources/index.ts b/query/query-resources/index.ts index 0fb0c73..672cd6d 100644 --- a/query/query-resources/index.ts +++ b/query/query-resources/index.ts @@ -157,7 +157,7 @@ export class QueryResources { return { code: 200, message: '上传成功' }; } - async getState(filepath: string, opts?: DataOpts): Promise> { + async getStat(filepath: string, opts?: DataOpts): Promise> { const url = `${this.prefix}${filepath}`; return adapter({ url, @@ -168,6 +168,15 @@ export class QueryResources { headers: this.header(opts?.headers), }); } + /** + * @deprecated use getStat instead + * @param filepath + * @param opts + * @returns + */ + async getState(filepath: string, opts?: DataOpts): Promise> { + return this.getStat(filepath, opts); + } async createFolder(folderpath: string, opts?: DataOpts): Promise> { const filepath = folderpath.endsWith('/') ? `${folderpath}keep.txt` : `${folderpath}/keep.txt`; return this.uploadFile(filepath, '文件夹占位,其他文件不存在,文件夹不存在,如果有其他文件夹,删除当前文件夹占位文件即可', opts);