Programmer Reference : Common File System : Searching directories : Closing the directory descriptor
Closing the directory descriptor
After all the desired directory entries have been read, the directory descriptor must be closed by sending it the closedir message before it is discarded. This deallocates any operating system resources associated with the directory descriptor.
Sending rewinddir to a CfsDirectoryDescriptor instance has the same effect as closing and reopening the directory descriptor, but is more efficient on some platforms. The search will resume from the first entry in the directory.
Last modified date: 01/29/2015