Class CustomDir<P>
Constructors
constructor
-
Parameters
-
path: P
-
nextDirent: function
-
Properties
closed
closed: boolean = false
Private nextDirent
nextDirent: function
Methods
[Symbol.asyncIterator]
- [Symbol.asyncIterator](): AsyncGenerator<Dirent & object, void, unknown>
-
Returns AsyncGenerator<Dirent & object, void, unknown>
close
- close(): Promise<void>
- close(cb: NoParamCallback): void
-
Returns Promise<void>
-
Parameters
Returns void
read
- read(): Promise<Dirent>
- read(cb: function): void
-
Returns Promise<Dirent>
-
Parameters
-
cb: function
-
- (err: ErrnoException | null, dirent: Dirent | null): void
-
Parameters
-
err: ErrnoException | null
-
dirent: Dirent | null
Returns void
Returns void
readSync
- readSync(): null | Dirent & object
-
Returns null
|
Dirent
&
object