(path: string, _opts?: FileCreateOptions)
| 80 | } |
| 81 | |
| 82 | async createDir(path: string, _opts?: FileCreateOptions): Promise<void> { |
| 83 | try { |
| 84 | await this.client.createDirectory(joinPath(this.basePath, path)); |
| 85 | } catch (e: any) { |
| 86 | // 如果是405错误,则忽略 |
| 87 | if (e.response?.status === 405 || e.message?.includes("405")) { |
| 88 | return; |
| 89 | } |
| 90 | throw e; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | async delete(path: string): Promise<void> { |
| 95 | try { |
nothing calls this directly
no test coverage detected