Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/blocks/daemon/realtime/kvfs.ts>KvFs

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Very Popular
Go to Latest
class KvFs
implements FileSystemApi
import { KvFs } from "https://deno.land/x/blocks@1.75.2/daemon/realtime/kvfs.ts";

Constructors

new
private
KvFs(base: string, kv: Deno.Kv)

Properties

private
broadcastChannel: BroadcastChannel
private
durableFS: DaemonDiskStorage
private
events: Queue<Deno.FsEvent>

Methods

private
getFullPath(path: string | URL): string[]
private
initialize()
ensureDir(_path: string | URL): Promise<void>
exists(path: string): Promise<boolean>
readDir(path: string | URL): AsyncIterable<Deno.DirEntry>
readTextFile(path: string | URL): Promise<string>
remove(path: string | URL, _options?: { recursive: boolean; } | undefined): Promise<void>
watchFs(_paths: string | string[]): AsyncIterable<Deno.FsEvent>
writeTextFile(path: string | URL, data: string): Promise<void>

Static Methods

New(base: string): Promise<KvFs>