Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.61.0/runtime/fs/mod.ts";

Constructors

new
VFS(fileSystem: FileSystem)

Properties

protected
watchers: WatcherMap
lastWrite

Methods

private
notifyForPath(filePath: 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>