class File
implements IFile
Abstract
import { File } from "https://deno.land/x/mesozoic@v1.0.0-alpha.19/lib/file.ts";
Methods
alias()
aliasUrl()
contentHash(length?)
copyToHashed(to: string): Promise<IFile>
filename()
isLocked()
path()
read()
readAsJson<T = unknown>(reviver?: (key: string, value: any) => any): Promise<T>
remove(): Promise<boolean>
rename(newFilename: string): Promise<string>
root()
setAlias(alias: string): void
unlock()
url()
write(content: string | Uint8Array)
writeJson(value: any, pretty?)