Class to read the contents of a directory.
Public Member Functions
|Status_t||Open (const Path_t &path)|
|Status_t||NextChild (out Path_t *child)|
Static Public Member Functions
|static Status_t||GetFileList (const Path_t &path, out gives OwnedList_t< Path_t > *file_list, const utf8 *only_files_starting_with=NULL)|
Opens the specified path for reading the contents.
If a child is available, sets *child to indicate its name and returns true. If no more children are available, returns false. Open must be called before NextChild.
Closes the directory.
|static Status_t Directory_t::GetFileList||(||const Path_t &||path,|
|out gives OwnedList_t< Path_t > *||file_list,|
|const utf8 *|| only_files_starting_with = |
Gets a list of files in the directory specified by path. As implied by the use of OwnedList_t for the output list, the caller takes posession of and responsibility for deleting the Path_t objects which will be added to file_list. If only_files_starting_with is not NULL, only files starting with that string will be returned. Depending on the target platform, only_files_starting_with may be case insensitive.