Interface for iterating through a list of filesystem entries.
Interface for iterating through a list of filesystem entries Defines a general interface for iterating through a list of entries (i.e. files in a folder
Defines a general interface for iterating through a list of entries i.e. files in a folder.
- BeOS R3
||struct dirent *
Returns the BEntryList's next entries as dirent structures.
Reads a number of entries into the array of dirent structures pointed to by buf. Reads as many but no more than count entries, as many entries as remain, or as many entries as will fit into the array at buf with given length length (in bytes), whichever is smallest.
|buf||A pointer to a buffer to be filled with dirent structures of the found entries. |
|length||The length of the buf array. |
|count||the maximum number of entries to be read.|
- The iterator used by this method is the same one used by GetNextEntry(), GetNextRef(), Rewind() and CountEntries().
- The number of dirent structures stored in the buffer or 0 when there are no more entries to be read.
- an error code (depending on the implementation of the derived class) if an error occurred.
- BeOS R3
Implemented in BQuery, and BDirectory.