Loading ifs/src/daemon/backend/metadata/db.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -124,10 +124,14 @@ std::vector<std::pair<std::string, bool>> MetadataDB::get_dirents(const std::str for(it->Seek(root_path); it->Valid() && it->key().starts_with(root_path) && it->key().size() != root_path.size(); it->key().starts_with(root_path); it->Next()){ if(it->key().size() == root_path.size()) { //we skip this path cause it is exactly the root_path continue; } /***** Get File name *****/ auto name = it->key().ToString(); if(name.find_first_of('/', root_path.size()) != std::string::npos){ Loading Loading
ifs/src/daemon/backend/metadata/db.cpp +6 −2 Original line number Diff line number Diff line Loading @@ -124,10 +124,14 @@ std::vector<std::pair<std::string, bool>> MetadataDB::get_dirents(const std::str for(it->Seek(root_path); it->Valid() && it->key().starts_with(root_path) && it->key().size() != root_path.size(); it->key().starts_with(root_path); it->Next()){ if(it->key().size() == root_path.size()) { //we skip this path cause it is exactly the root_path continue; } /***** Get File name *****/ auto name = it->key().ToString(); if(name.find_first_of('/', root_path.size()) != std::string::npos){ Loading