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

x/live/runtime/fs/mod.ts>VFS

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
class VFS
implements IVFS
import { VFS } from "https://deno.land/x/live@1.57.28/runtime/fs/mod.ts";

Constructors

new
VFS(fileSystem: FileSystem)

Properties

protected
watchers: WatcherMap

Methods

private
notifyForPath(filePath: string)
cwd(): string
mkdir(_path: string | URL, _options?: Deno.MkdirOptions | undefined): Promise<void>
readDir(path: string | URL): AsyncIterable<Deno.DirEntry>
readFile(path: string | URL, _options?: Deno.ReadFileOptions | undefined): Promise<Uint8Array>
readTextFile(path: string | URL, _options?: Deno.ReadFileOptions | undefined): Promise<string>
remove(path: string | URL, _options?: Deno.RemoveOptions | undefined): Promise<void>
watchFs(paths: string | string[], _options?: { recursive: boolean; }): Deno.FsWatcher
writeFile(
path: string | URL,
data: Uint8Array | ReadableStream<Uint8Array>,
__options?: Deno.WriteFileOptions | undefined,
): Promise<void>
writeTextFile(
path: string | URL,
data: string | ReadableStream<string>,
options?: Deno.WriteFileOptions | undefined,
): Promise<void>