[DEV] add api to read folder with regex (not implemented)
This commit is contained in:
parent
77e7e1bf5e
commit
230110cb06
@ -1426,6 +1426,15 @@ int64_t etk::FSNode::folderCount() {
|
||||
}
|
||||
|
||||
std::vector<etk::FSNode *> etk::FSNode::folderGetSubList(bool _showHidenFile, bool _getFolderAndOther, bool _getFile, bool _temporaryFile) {
|
||||
std::string filter=".*";
|
||||
if (_temporaryFile == true) {
|
||||
filter = ".*(~|\\.bck|\\.tmp)";
|
||||
}
|
||||
return etk::FSNode::folderGetSubList(_showHidenFile, _getFolderAndOther, _getFile, filter);
|
||||
}
|
||||
|
||||
std::vector<etk::FSNode *> etk::FSNode::folderGetSubList(bool _showHidenFile, bool _getFolderAndOther, bool _getFile, const std::string& _filter) {
|
||||
TK_TODO("implement filter ... ");
|
||||
std::vector<etk::FSNode*> tmpp;
|
||||
// regenerate the next list :
|
||||
etk::FSNode * tmpEmement = NULL;
|
||||
|
@ -398,6 +398,10 @@ namespace etk {
|
||||
bool _getFolderAndOther = true,
|
||||
bool _getFile = true,
|
||||
bool _temporaryFile = true);
|
||||
std::vector<etk::FSNode*> folderGetSubList(bool _showHidenFile = true,
|
||||
bool _getFolderAndOther = true,
|
||||
bool _getFile = true,
|
||||
const std::string& _filter = ".*");
|
||||
/**
|
||||
* @brief Get the father node of this node
|
||||
* @return The requested node
|
||||
|
Loading…
x
Reference in New Issue
Block a user