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<object & object, void, unknown>
-
Returns AsyncGenerator<object & object, void, unknown>
close
- close(): Promise<void>
- close(cb: NoParamCallback): void
-
Returns Promise<void>
-
Parameters
Returns void
read
-
-
Parameters
-
cb: function
-
- (err: ErrnoException | null, dirent: DirentNoPath | null): void
-
Parameters
-
err: ErrnoException | null
-
Returns void
Returns void
readSync
- readSync(): null | object & object
-
Returns null
|
object
&
object