9 #ifndef CDirectoryExplorer_H 10 #define CDirectoryExplorer_H 20 #define FILE_ATTRIB_ARCHIVE 0x0020 21 #define FILE_ATTRIB_DIRECTORY 0x0010 72 const std::string &path,
73 const unsigned long mask,
78 static void sortByName(
TFileInfoList &lstFiles,
bool ascendingOrder=
true );
83 static void filterByExtension(
TFileInfoList &lstFiles,
const std::string &extension );
std::string wholePath
The whole file path.
This class allows the enumeration of the files/directories that exist into a given path.
This represents the information about each file.
uint64_t fileSize
The size of the file in bytes.
std::deque< TFileInfo > TFileInfoList
The list type used in "explore".
std::string name
The file name (without the whole path).
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.