MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dumpDirectories

Method dumpDirectories

Engine/source/platformPOSIX/POSIXFileio.cpp:1298–1319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296}
1297
1298bool Platform::dumpDirectories(const char *path, Vector<StringTableEntry> &directoryVector, S32 depth, bool noBasePath)
1299{
1300#ifdef TORQUE_POSIX_PATH_CASE_INSENSITIVE
1301 dsize_t pathLength = dStrlen(path);
1302 char* caseSensitivePath = new char[pathLength + 1];
1303
1304 // Load path into temporary buffer
1305 dMemcpy(caseSensitivePath, path, pathLength);
1306 caseSensitivePath[pathLength] = 0x00;
1307 ResolvePathCaseInsensitive(caseSensitivePath, pathLength, false);
1308#else
1309 const char* caseSensitivePath = path;
1310#endif
1311
1312 bool retVal = recurseDumpDirectories(caseSensitivePath, "", directoryVector, -1, depth, noBasePath);
1313 clearExcludedDirectories();
1314
1315#ifdef TORQUE_POSIX_PATH_CASE_INSENSITIVE
1316 delete[] caseSensitivePath;
1317#endif
1318 return retVal;
1319}
1320
1321StringTableEntry Platform::getExecutableName()
1322{

Callers

nothing calls this directly

Calls 4

dMemcpyFunction · 0.70
recurseDumpDirectoriesFunction · 0.70
dStrlenFunction · 0.50

Tested by

no test coverage detected