![]() |
Offers tools to work with directories in the file systems provided by the operating system. More...
#include <DirTool.h>
Static Public Member Functions | |
static ErrorCode | traverse (StringArray &pResultRef, string &pPathRef, string &pHeadRef) |
Reads a directory content and if the file names start with pHead, copy them in pResult. | |
static ErrorCode | traverse (StringArray &pResultRef, string &pPathRef, const char *pHeadPtr) |
Reads a directory content and if the file names start with pHead, copy them in pResult. | |
Offers tools to work with directories in the file systems provided by the operating system.
|
static |
Reads a directory content and if the file names start with pHead, copy them in pResult.
pResultRef | List of matching files |
pPathRef | Directory that is being analyzed. |
pHeadRef | String to compare with the beginning of file names. |
< too many files open
< filesystem can't support more open files
< not enough memory available
Definition at line 31 of file DirTool.cpp.
References HSEP::EC::AccessError, HSEP::EC::IncompleteProcessing, HSEP::EC::ManyOpenFiles, HSEP::EC::NotCatalogedError, HSEP::EC::NotEnoughMemory, HSEP::EC::OK, and HSEP::Array< T >::push().
Referenced by HSEP::BaseDriverSet::load(), and traverse().
|
static |
Reads a directory content and if the file names start with pHead, copy them in pResult.
pResultRef | List of matching files |
pPathRef | Directory that is being analyzed. |
pHeadPtr | String to compare with the beginning of file names. |
Definition at line 73 of file DirTool.cpp.
References traverse().