MCPcopy Index your code
hub / github.com/jvilk/BrowserFS / _requestFileSizeAsync

Method _requestFileSizeAsync

src/backend/XmlHttpRequest.ts:434–436  ·  view source on GitHub ↗

* Only requests the HEAD content, for the file size.

(path: string, cb: BFSCallback<number>)

Source from the content-addressed store, hash-verified

432 * Only requests the HEAD content, for the file size.
433 */
434 private _requestFileSizeAsync(path: string, cb: BFSCallback<number>): void {
435 getFileSizeAsync(this.getXhrPath(path), cb);
436 }
437 private _requestFileSizeSync(path: string): number {
438 return getFileSizeSync(this.getXhrPath(path));
439 }

Callers 1

statMethod · 0.95

Calls 2

getXhrPathMethod · 0.95
getFileSizeAsyncFunction · 0.90

Tested by

no test coverage detected