interface INodeFsLike { mkdir(path: string, options?: { recursive?: boolean }): Promise<void>; readFile(path: string): Promise<Uint8Array>; stat(path: string): Promise<{ lastModified: number; size: number }>; writeFile(path: string, data: Uint8Array): Promise<void>;} Methods
mkdir
- mkdir(path: string, options?: { recursive?: boolean }): Promise<void>
Parameters
- path: string
Optional
options: { recursive?: boolean }
Returns Promise<void>
readFile
- readFile(path: string): Promise<Uint8Array>
Returns Promise<Uint8Array>
stat
- stat(path: string): Promise<{ lastModified: number; size: number }>
Returns Promise<{ lastModified: number; size: number }>
writeFile
- writeFile(path: string, data: Uint8Array): Promise<void>
Parameters
- path: string
- data: Uint8Array
Returns Promise<void>