Properties
exists
exists: ((path) => Promise<boolean>)
Type declaration
- (path): Promise<boolean>
Returns Promise<boolean>
mkdir
mkdir: ((path) => Promise<void>)
Type declaration
- (path): Promise<void>
Returns Promise<void>
readFile
readFile: ((path) => Promise<Buffer>)
Type declaration
- (path): Promise<Buffer>
Returns Promise<Buffer>
readdir
readdir: ((path) => Promise<string[]>)
Type declaration
- (path): Promise<string[]>
Returns Promise<string[]>
rename
rename: ((oldPath, newPath) => Promise<void>)
Type declaration
- (oldPath, newPath): Promise<void>
Parameters
oldPath: string
newPath: string
Returns Promise<void>
rmdir
rmdir: ((path) => Promise<void>)
Type declaration
- (path): Promise<void>
Returns Promise<void>
stat
stat: ((path) => Promise<Stats>) unlink
unlink: ((path) => Promise<void>)
Type declaration
- (path): Promise<void>
Returns Promise<void>
writeFile
writeFile: ((path, content) => Promise<void>)
Type declaration
- (path, content): Promise<void>
Parameters
path: string
content: string | Buffer
Returns Promise<void>