Skip to main content
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-beta.1/lib/sources/file.ts";

Constructors

new
File(filePath: string, rootPath: string)

Properties

private
locked: boolean
private
originalFilePaths: Set<string>

Methods

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