MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / dumpPath

Method dumpPath

engine/source/platformAndroid/AndroidFileio.cpp:1285–1309  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1283
1284//-----------------------------------------------------------------------------
1285bool 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)

Callers

nothing calls this directly

Calls 5

isCachePathFunction · 0.85
isUserDataPathFunction · 0.85
recurseDumpPathCacheFunction · 0.85
android_DumpPathFunction · 0.85
dStrlenFunction · 0.70

Tested by

no test coverage detected