import { AttachmentDriverFilesystem } from "https://deno.land/x/earthstar@v10.0.1/src/entries/deno.ts";
An attachment driver which persists attachments using the local filesystem. Works with Deno.
Methods
private
ensureDir(...args: string[])close(erase: boolean)
erase(formatName: string, attachmentHash: string)
filter(attachments: Record<string, Set<string>>): Promise<{ format: string; hash: string; }[]>
getAttachment(formatName: string, attachmentHash: string): Promise<DocAttachment | undefined>
isClosed(): boolean
stage(formatName: string, attachment: ReadableStream<Uint8Array> | Uint8Array)
wipe()