-----------------------------------------------------------------------------
| 1283 | |
| 1284 | //----------------------------------------------------------------------------- |
| 1285 | bool Platform::dumpPath(const char *path, Vector<Platform::FileInfo>& fileVector, S32 depth) |
| 1286 | { |
| 1287 | if (isCachePath(path) || isUserDataPath(path)) |
| 1288 | { |
| 1289 | PROFILE_START(dumpPath); |
| 1290 | const S32 len = dStrlen(path) + 1; |
| 1291 | char newpath[255]; |
| 1292 | |
| 1293 | strcpy(newpath, path); |
| 1294 | |
| 1295 | if(newpath[len - 2] == '/') |
| 1296 | newpath[len - 2] = '\0'; // cut off the trailing slash, if there is one |
| 1297 | |
| 1298 | bool ret = recurseDumpPathCache( newpath, fileVector, depth); |
| 1299 | PROFILE_END(); |
| 1300 | |
| 1301 | return ret; |
| 1302 | } |
| 1303 | |
| 1304 | PROFILE_START(dumpPath); |
| 1305 | bool ret = android_DumpPath( path, fileVector, depth); |
| 1306 | PROFILE_END(); |
| 1307 | |
| 1308 | return ret; |
| 1309 | } |
| 1310 | |
| 1311 | //----------------------------------------------------------------------------- |
| 1312 | #if defined(TORQUE_DEBUG) |
nothing calls this directly
no test coverage detected