MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / findByPattern

Method findByPattern

Engine/source/core/virtualMountSystem.cpp:183–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183S32 VirtualMountSystem::findByPattern( const Path &inBasePath, const String &inFilePattern, bool inRecursive, Vector<String> &outList, bool includeDirs/* =false */, bool multiMatch /* = true */ )
184{
185 if (mUseParentFind)
186 // use parent version
187 return Parent::findByPattern(inBasePath, inFilePattern, inRecursive, outList, includeDirs, multiMatch);
188
189 // don't want to re-enter this version
190 mUseParentFind = true;
191
192 // kind of cheesy, just call find by pattern on each File system mounted on the root
193 for (Vector<MountFS>::const_iterator itr = mMountList.begin(); itr != mMountList.end(); itr++)
194 {
195 if (itr->root.equal( inBasePath.getRoot(), String::NoCase ) )
196 {
197 FileSystemRef fsref = itr->fileSystem;
198 _setFindByPatternOverrideFS(fsref);
199 Parent::findByPattern(inBasePath, inFilePattern, inRecursive, outList, includeDirs, multiMatch);
200 _setFindByPatternOverrideFS(NULL);
201 }
202 }
203
204 mUseParentFind = false;
205
206 return outList.size();
207}
208
209bool VirtualMountSystem::createPath(const Path& path)
210{

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
equalMethod · 0.45
getRootMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected