Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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