Protected
_readProtected
checkAsynchronously close the directory's underlying resource handle. Subsequent reads will result in errors.
Asynchronously close the directory's underlying resource handle. Subsequent reads will result in errors.
A promise is returned that will be fulfilled after the resource has been closed.
Asynchronously read the next directory entry via readdir(3)
as an Dirent
.
After the read is completed, a value is returned that will be resolved with an Dirent
, or null
if there are no more directory entries to read.
Directory entries returned by this function are in no particular order as provided by the operating system's underlying directory mechanisms.
Asynchronously read the next directory entry via readdir(3)
as an fs.Dirent
.
A promise is returned that will be fulfilled with an fs.Dirent
, or null
if there are no more directory entries to read.
Directory entries returned by this function are in no particular order as provided by the operating system's underlying directory mechanisms. Entries added or removed while iterating over the directory might not be included in the iteration results.
containing {fs.Dirent|null}
Synchronously read the next directory entry via readdir(3)
as a Dirent
.
If there are no more directory entries to read, null will be returned.
Directory entries returned by this function are in no particular order as provided by the operating system's underlying directory mechanisms.
A class representing a directory stream.