MCPcopy Create free account
hub / github.com/OpenMW/openmw / getRecursiveDirectoryIterator

Method getRecursiveDirectoryIterator

components/vfs/manager.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 8

recreateMethod · 0.80
readVFSFunction · 0.80
injectCustomBonesFunction · 0.80
initVFSPackageFunction · 0.80
findSplashScreensMethod · 0.80
SettingsWindowMethod · 0.80

Calls 6

normalizeFilenameFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
viewMethod · 0.45
valueMethod · 0.45

Tested by 1

readVFSFunction · 0.64