8 #ifndef _UTILS_FOLDER_H_
9 #define _UTILS_FOLDER_H_
18 File(std::string file);
30 Folder(std::string folder,
bool listDotFiles =
false);
44 void findFilesEndingWith(std::vector<File>& found, std::string end,
bool casesensitive =
false);
53 bool casesensitive =
false);
57 int readFolderItems(std::vector<std::string>& foundFiles, std::vector<std::string>& foundFolders);
std::string name
Only last part of path.
std::string getRecursiveFileName(unsigned long i)
Folder & getFolder(unsigned long i)
unsigned long countRecursiveFiles()
unsigned long folderCount()
Folder(std::string folder, bool listDotFiles=false)
std::vector< File > files
File & getRecursiveFile(unsigned long i)
unsigned long fileCount()
std::vector< Folder > folders
std::string path
Full path, with name and '/' at end.
void findRecursiveFilesEndingWith(std::vector< File > &found, std::string end, bool casesensitive=false)
void executeRemoveFiles(std::function< bool(File &f)> func)
File & getFile(unsigned long i)
void findFilesEndingWith(std::vector< File > &found, std::string end, bool casesensitive=false)
void executeRemoveRecursiveFiles(std::function< bool(File &f)> func)
int readFolderItems(std::vector< std::string > &foundFiles, std::vector< std::string > &foundFolders)