Module

x/ultra/lib/build/deps.ts>VirtualFile

🧙 Zero-Legacy Deno/React Suspense SSR Framework
Go to Latest
class VirtualFile
implements IFile
extends File
import { VirtualFile } from "https://dotland.deno.dev/x/ultra@v2.0.1/lib/build/deps.ts";

Constructors

new
VirtualFile(
filePath: string,
rootPath: string,
content: string | Uint8Array,
)

Properties

private
content: string | Uint8Array

Methods

copyTo(to: string): Promise<IFile>
readBytes(): Promise<Uint8Array>
remove(): Promise<boolean>