C/C++ Reference
DirIntf Struct Reference

Directory handle for a directory opened with IoIntf_OpenDir. More...

#include <IoIntf.h>

Collaboration diagram for DirIntf:

List of all members.

Public Attributes

DirIntf_Read readFp
 Iterate the resources in the file system.
DirIntf_GetName getNameFp
 Get resource name.
DirIntf_Stat statFp
 Get resource information.

Detailed Description

Directory handle for a directory opened with IoIntf_OpenDir.

Example:

DirIntfPtr dir = io->openDirFp(io, relPath, &status, 0);
if(dir)
{
   while ( ! dir->readFp(dir) )
   {
      IoStat st;
      const char* name = dir->getNameFp(dir);
      dir->statFp(dir, &st);
   }
}
io->closeDirFp(io, &dir);
See also:
IoIntf