MCPcopy
hub / github.com/remotely-save/remotely-save / readFile

Method readFile

src/fsDropbox.ts:666–673  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 3

_initMethod · 0.95
_readFileFromRootMethod · 0.95
getDropboxPathFunction · 0.85

Tested by

no test coverage detected