SECFileSystem::GetDirectory
CStringList *SECFileSystem::GetDirectory(const CString&SearchString, const unsigned longeFileAttrib, const BOOLbRecurseSubDirs= FALSE, CStringList *pStringList= NULL)
Returns a list of files based on a filespec.
Defined in: filesys.cpp
Return Value
A list of files. The filenames include the path.
Parameters
SearchString
The name of the files to be listed (i.e., *.*, *.txt).
eFileAttrib
The file filter attributes (See Attribute).
Comments
To return a list of files based on a search string, etc.
Example
CStringList *pDir = fs.GetDirectory("*.txt", normal, TRUE);
(void) fs.GetDirectory("*.doc", normal, TRUE, pDir);
bRecurseSubDirs
Whether to traverse subdirectories when looking for files.
pStringList
A list to place the filenames in. If one is not specified, one is created.
Developer Notes
If you do not pass in a CStringList pointer in pStringList, you must delete the returned list.
See Also