| 98 | } |
| 99 | |
| 100 | RecursiveDirectoryRange Manager::getRecursiveDirectoryIterator(std::string_view path) const |
| 101 | { |
| 102 | if (path.empty()) |
| 103 | return { mIndex.begin(), mIndex.end() }; |
| 104 | std::string normalized = Path::normalizeFilename(path); |
| 105 | const auto it = mIndex.lower_bound(normalized); |
| 106 | if (it == mIndex.end() || !it->first.view().starts_with(normalized)) |
| 107 | return { it, it }; |
| 108 | ++normalized.back(); |
| 109 | return { it, mIndex.lower_bound(normalized) }; |
| 110 | } |
| 111 | |
| 112 | RecursiveDirectoryRange Manager::getRecursiveDirectoryIterator(VFS::Path::NormalizedView path) const |
| 113 | { |