Constructors
constructor
- new Directory(init?): Directory
Methods
__getClassname
- __getClassname(): string
Returns string
createDir
- createDir(path): Promise<void>
Returns Promise<void>
free
- free(): void
Returns void
readDir
- readDir(path): Promise<DirEntry[]>
Returns Promise<DirEntry[]>
readFile
- readFile(path): Promise<Uint8Array>
Returns Promise<Uint8Array>
readTextFile
- readTextFile(path): Promise<string>
Returns Promise<string>
removeDir
- removeDir(path): Promise<void>
Returns Promise<void>
removeFile
- removeFile(path): Promise<void>
Returns Promise<void>
writeFile
- writeFile(path, contents): Promise<void>
Parameters
path: string
contents: string | Uint8Array
Returns Promise<void>
A directory that can be mounted inside a WASIX instance.