You are currently viewing the documentation for:
ECF_ScanDirNext
The ECF_ScanDirNext function retrieves information about the next file or directory in a directory scan.
ECF_ErrorCode ECF_ScanDirNext(
   struct ECF_FileHandle *scanDirPosition,
   struct ECF_FileDirectoryData *fileDirectoryData
);
Parameters
scanDirPosition
This is a pointer to the struct previously initialized by ECF_ScanDirBegin.
fileDirectoryData
This struct will be filled with information about the next available file/directory.
Return value
Returns one of the ECF error codes (ECFERR_SUCCESS on success) Returns ECF_NOMOREFILES when all the entries in the directory have been scanned.
Remarks
When you scan a directory, the special entries "." and ".." (for the current and the parent directory) will be returned. Most users want to ignore these so be sure to check for these names.
Example Code
See example for ECF_ScanDirBegin().
See also