Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
class KvFs
implements FileSystemApi
import { KvFs } from "https://deno.land/x/live@1.77.0/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>