| 181 | } |
| 182 | |
| 183 | S32 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 | |
| 209 | bool VirtualMountSystem::createPath(const Path& path) |
| 210 | { |