Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mesozoic/lib/sources/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.34/lib/sources/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)
url()
write(content: string | Uint8Array)
writeJson(value: any, pretty?)