class VFS
implements IVFS
import { VFS } from "https://deno.land/x/blocks@1.59.3/runtime/fs/mod.ts";
Constructors
new
VFS(fileSystem: FileSystem)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(): Promise<void>
path: string | URL,
data: Uint8Array | ReadableStream<Uint8Array>,
__options?: Deno.WriteFileOptions | undefined,
writeTextFile(): Promise<void>
path: string | URL,
data: string | ReadableStream<string>,
options?: Deno.WriteFileOptions | undefined,