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

Method init

src/generic/key_value_filesystem.ts:728–732  ·  view source on GitHub ↗

* Initializes the file system. Typically called by subclasses' async * constructors.

(store: AsyncKeyValueStore, cb: BFSOneArgCallback)

Source from the content-addressed store, hash-verified

726 * constructors.
727 */
728 public init(store: AsyncKeyValueStore, cb: BFSOneArgCallback) {
729 this.store = store;
730 // INVARIANT: Ensure that the root exists.
731 this.makeRootDirectory(cb);
732 }
733 public getName(): string { return this.store.name(); }
734 public isReadOnly(): boolean { return false; }
735 public supportsSymlinks(): boolean { return false; }

Callers 6

nop.jsFile · 0.80
bad_lookup.jsFile · 0.80
readdir_empty.jsFile · 0.80
readdir.jsFile · 0.80
files.jsFile · 0.80
constructorMethod · 0.80

Calls 1

makeRootDirectoryMethod · 0.95

Tested by

no test coverage detected