(key: string)
| 664 | } |
| 665 | |
| 666 | async readFile(key: string): Promise<ArrayBuffer> { |
| 667 | await this._init(); |
| 668 | if (key.endsWith("/")) { |
| 669 | throw new Error(`you should not call readFile on folder ${key}`); |
| 670 | } |
| 671 | const downloadFile = getDropboxPath(key, this.remoteBaseDir); |
| 672 | return await this._readFileFromRoot(downloadFile); |
| 673 | } |
| 674 | |
| 675 | async _readFileFromRoot(key: string): Promise<ArrayBuffer> { |
| 676 | const rsp = await retryReq( |
nothing calls this directly
no test coverage detected