Closes the directory and deallocates all related resources.
Retrieves the name of another entry in the directory, or
The order of entries returned from this function is not defined,
and may vary by file system or other operating-system dependent factors.
Resets the given directory. The next call to
will return the first entry again.