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

x/deco/daemon/realtime/object.ts>FileSystemApi

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
interface FileSystemApi
import { type FileSystemApi } from "https://deno.land/x/deco@1.75.1/daemon/realtime/object.ts";

Properties

readTextFile: (path: string) => Promise<string>

Methods

ensureDir(dir: string | URL): Promise<void>
exists(path: string | URL, options?: ExistsOptions): Promise<boolean>
readDir(path: string | URL): AsyncIterable<Deno.DirEntry>
remove(path: string | URL, options?: { recursive: boolean; }): Promise<void>
watchFs(paths: string | string[], options?: { recursive: boolean; }): AsyncIterable<Deno.FsEvent>
writeTextFile(path: string | URL, data: string): Promise<void>