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

Method dumpPath

Engine/source/platformPOSIX/POSIXFileio.cpp:916–934  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

914
915//-----------------------------------------------------------------------------
916bool Platform::dumpPath(const char *path, Vector<Platform::FileInfo> &fileVector, int depth)
917{
918 const char* pattern = "*";
919
920 // if it is not absolute, dump the pref dir first
921 if (path[0] != '/' && path[0] != '\\')
922 {
923 char prefPathName[MaxPath];
924 MungePath(prefPathName, MaxPath, path, GetPrefDir());
925 RecurseDumpPath(prefPathName, path, pattern, fileVector, 0, depth);
926 }
927
928 // munge the requested path and dump it
929 char mungedPath[MaxPath];
930 char cwd[MaxPath];
931 getcwd(cwd, MaxPath);
932 MungePath(mungedPath, MaxPath, path, cwd);
933 return RecurseDumpPath(mungedPath, path, pattern, fileVector, 0, depth);
934}
935
936//-----------------------------------------------------------------------------
937StringTableEntry Platform::getCurrentDirectory()

Callers

nothing calls this directly

Calls 3

MungePathFunction · 0.85
GetPrefDirFunction · 0.85
RecurseDumpPathFunction · 0.85

Tested by

no test coverage detected