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

Interface FileSystemConstructor

src/core/file_system.ts:357–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 * Contains typings for static functions on the file system constructor.
356 */
357export interface FileSystemConstructor {
358 /**
359 * **Core**: Name to identify this particular file system.
360 */
361 Name: string;
362 /**
363 * **Core**: Describes all of the options available for this file system.
364 */
365 Options: FileSystemOptions;
366 /**
367 * **Core**: Creates a file system of this given type with the given
368 * options.
369 */
370 Create(options: object, cb: BFSCallback<FileSystem>): void;
371 /**
372 * **Core**: Returns 'true' if this filesystem is available in the current
373 * environment. For example, a `localStorage`-backed filesystem will return
374 * 'false' if the browser does not support that API.
375 *
376 * Defaults to 'false', as the FileSystem base class isn't usable alone.
377 */
378 isAvailable(): boolean;
379}
380
381/**
382 * Basic filesystem class. Most filesystems should extend this class, as it

Callers 16

authFunction · 0.65
AsyncMirrorFactoryFunction · 0.65
HTML5FSFactoryFunction · 0.65
fetchIsoFunction · 0.65
fetchZipFunction · 0.65
WorkerFSFactoryFunction · 0.65
MFSFactoryFunction · 0.65
IDBFSFactoryFunction · 0.65
DBFSFactoryFunction · 0.65
HTML5FSFactoryFunction · 0.65
IsoFSFactoryFunction · 0.65
ZipFSFactoryFunction · 0.65

Implementers 13

MountableFileSystemsrc/backend/MountableFileSystem.ts
EmscriptenFileSystemsrc/backend/Emscripten.ts
HTML5FSsrc/backend/HTML5FS.ts
WorkerFSsrc/backend/WorkerFS.ts
IsoFSsrc/backend/IsoFS.ts
OverlayFSsrc/backend/OverlayFS.ts
FolderAdaptersrc/backend/FolderAdapter.ts
ZipFSsrc/backend/ZipFS.ts
IndexedDBFileSystemsrc/backend/IndexedDB.ts
LocalStorageFileSystemsrc/backend/LocalStorage.ts
XmlHttpRequestsrc/backend/XmlHttpRequest.ts
AsyncMirrorsrc/backend/AsyncMirror.ts

Calls

no outgoing calls

Tested by

no test coverage detected