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

Method diskSpace

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

* **Optional**: Passes the following information to the callback: * * * Total number of bytes available on this file system. * * number of free bytes available on this file system. * * @todo This info is not available through the Node API. Perhaps we could do a * polyfill of disk

(p: string, cb: (total: number, free: number) => any)

Source from the content-addressed store, hash-verified

75 * useful for filesystems that support mount points.
76 */
77 diskSpace(p: string, cb: (total: number, free: number) => any): void;
78 /**
79 * **Core**: Is this filesystem read-only?
80 * @return True if this FileSystem is inherently read-only.

Callers 1

diskSpaceMethod · 0.65

Implementers 10

LockedFSsrc/generic/locked_fs.ts
MountableFileSystemsrc/backend/MountableFileSystem.ts
WorkerFSsrc/backend/WorkerFS.ts
IsoFSsrc/backend/IsoFS.ts
UnlockedOverlayFSsrc/backend/OverlayFS.ts
FolderAdaptersrc/backend/FolderAdapter.ts
ZipFSsrc/backend/ZipFS.ts
XmlHttpRequestsrc/backend/XmlHttpRequest.ts
AsyncMirrorsrc/backend/AsyncMirror.ts
DropboxFileSystemsrc/backend/Dropbox.ts

Calls

no outgoing calls

Tested by

no test coverage detected