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

x/mesozoic/lib/file.ts>File

A generic build system for Deno web apps
Go to Latest
class File
implements IFile
Abstract
import { File } from "https://deno.land/x/mesozoic@v1.0.0-alpha.19/lib/file.ts";

Constructors

new
File(filePath: string, rootPath: string)

Properties

private
optional
aliasPath: string
private
locked: boolean

Methods

contentHash(length?)
copyTo(_to: string, _filePath?: string | undefined): Promise<IFile>
copyToHashed(to: string): Promise<IFile>
readAsJson<T = unknown>(reviver?: (key: string, value: any) => any): Promise<T>
remove(): Promise<boolean>
rename(newFilename: string): Promise<string>
setAlias(alias: string): void
url()
write(content: string | Uint8Array)
writeJson(value: any, pretty?)