MCPcopy
hub / github.com/jvilk/BrowserFS / _makeFile

Method _makeFile

src/backend/Dropbox.ts:562–566  ·  view source on GitHub ↗

* Private * Returns a BrowserFS object representing a File, created from the data * returned by calls to the Dropbox API.

(path: string, flag: FileFlag, stat: Dropbox.File.Stat, buffer: Buffer)

Source from the content-addressed store, hash-verified

560 * returned by calls to the Dropbox API.
561 */
562 public _makeFile(path: string, flag: FileFlag, stat: Dropbox.File.Stat, buffer: Buffer): DropboxFile {
563 const type = this._statType(stat);
564 const stats = new Stats(type, stat.size);
565 return new DropboxFile(this, path, flag, stats, buffer);
566 }
567
568 /**
569 * Private

Callers 1

openMethod · 0.95

Calls 1

_statTypeMethod · 0.95

Tested by

no test coverage detected