Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
DirIntf Struct Reference

Detailed Description

Directory handle for a directory opened with IoIntf_OpenDir.

Example:

int status;
DirIntfPtr dir = io->openDirFp(io, relPath, &status, 0);
if(dir)
{
while((status = dir->readFp(dir)) == 0)
{
IoStat st;
const char* name = dir->getNameFp(dir);
int statStatus = dir->statFp(dir, &st);
if(statStatus == 0)
{
// Process name/st here before advancing the iterator.
}
}
// IOINTF_NOTFOUND is normal end-of-directory; other values are errors.
int closeStatus = io->closeDirFp(io, &dir);
// Handle closeStatus; dir has been consumed even if closing failed.
}
Resource information.
Definition: IoIntf.h:170
See also
IoIntf

#include <IoIntf.h>

Public Attributes

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

Member Data Documentation

◆ getNameFp

DirIntf_GetName DirIntf::getNameFp

Get resource name.

◆ readFp

DirIntf_Read DirIntf::readFp

Iterate the resources in the file system.

◆ statFp

DirIntf_Stat DirIntf::statFp

Get resource information.