mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-04 14:24:10 +00:00
Implement find_paths_starting_by().
This commit is contained in:
parent
12c062b939
commit
853fb13495
3 changed files with 18 additions and 2 deletions
|
@ -317,4 +317,15 @@ namespace dindb {
|
|||
}
|
||||
return retval;
|
||||
};
|
||||
|
||||
std::vector<std::string> find_paths_starting_by (redis::IncRedis& parRedis, GroupIDType parGroupID, uint16_t parLevel, boost::string_ref parPath) {
|
||||
using boost::adaptors::transformed;
|
||||
using dinhelp::MaxSizedArray;
|
||||
|
||||
auto file_details = find_file_details(parRedis, parGroupID, parLevel, parPath);
|
||||
return boost::copy_range<std::vector<std::string>>(
|
||||
file_details |
|
||||
transformed([](MaxSizedArray<std::string, 1>& a){return std::move(a.front());})
|
||||
);
|
||||
}
|
||||
} //namespace dindb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue