Getdents

Creates an object which can iterate through the types and names of files in a directory. It calls getdents64 with a configurable buffer size.

new Getdents(size: integer, fd: integer?)
Parameters
size (integer) Size of buffer to use when calling getdents64 .
fd (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.
Static Members
DT_BLK
DT_CHR
DT_DIR
DT_FIFO
DT_LNK
DT_REG
DT_SOCK
DT_UNKNOWN
Instance Members
reset(fd)
iterator()
asyncIterator()
type
name