2.0.10
Creates an object which can iterate through the types and names of files in a directory. It calls getdents64 with a configurable buffer size.
(integer)
Size of buffer to use when calling
getdents64
.
(integer?)
Open file descriptor to directory (e.g. from
fs.open
). If you don't specfify this here, you'll need to call
reset
. Note you'll need to close
fd
yourself - it won't be closed when iteration is complete.
integer
:
Type value of block devices.
integer
:
Type value of character devices.
integer
:
Type value of directories.
integer
:
Type value of named pipes.
integer
:
Type value of symbolic links.
integer
:
Type value of regular files.
integer
:
Type value of UNIX domain sockets.
integer
:
Type value of files of unknown type.