MCPcopy
hub / github.com/streetwriters/notesnook / IStreamableFS

Interface IStreamableFS

packages/streamable-fs/src/interfaces.ts:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21import { File } from "./types.js";
22
23export interface IStreamableFS {
24 createFile(
25 filename: string,
26 size: number,
27 type: string,
28 options?: { overwrite?: boolean }
29 ): Promise<FileHandle>;
30 readFile(filename: string): Promise<FileHandle | undefined>;
31 exists(filename: string): Promise<boolean>;
32 deleteFile(filename: string): Promise<boolean>;
33 bulkDeleteFiles(filenames: string[]): Promise<boolean>;
34 list(): Promise<string[]>;
35 moveFile(source: FileHandle, dest: FileHandle): Promise<void>;
36 clear(): Promise<void>;
37}
38
39export interface IFileStorage {
40 clear(): Promise<void>;

Callers 17

restoreBackupFileFunction · 0.65
writeEncryptedFileFunction · 0.65
downloadFileFunction · 0.65
restoreBackupFunction · 0.65
createZipFunction · 0.65
createFileFunction · 0.65
runFunction · 0.65
downloadAttachmentsFunction · 0.65
isBundleSameFunction · 0.65
pullFunction · 0.65
readEncryptedFunction · 0.65
uploadFileFunction · 0.65

Implementers 1

StreamableFSpackages/streamable-fs/src/index.ts

Calls

no outgoing calls

Tested by

no test coverage detected