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

Method empty

src/generic/key_value_filesystem.ts:286–290  ·  view source on GitHub ↗

* Delete all contents stored in the file system.

()

Source from the content-addressed store, hash-verified

284 * Delete all contents stored in the file system.
285 */
286 public empty(): void {
287 this.store.clear();
288 // INVARIANT: Root always exists.
289 this.makeRootDirectory();
290 }
291
292 public renameSync(oldPath: string, newPath: string): void {
293 const tx = this.store.beginTransaction('readwrite'),

Callers

nothing calls this directly

Calls 2

makeRootDirectoryMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected