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

Method dumpPath

engine/source/platformEmscripten/EmscriptenFileio.cpp:892–910  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

890
891//-----------------------------------------------------------------------------
892bool Platform::dumpPath(const char *path, Vector<Platform::FileInfo> &fileVector, int depth)
893{
894 const char* pattern = "*";
895
896 // if it is not absolute, dump the pref dir first
897 if (path[0] != '/' && path[0] != '\\')
898 {
899 char prefPathName[MaxPath];
900 MungePath(prefPathName, MaxPath, path, GetPrefDir());
901 RecurseDumpPath(prefPathName, path, pattern, fileVector, depth);
902 }
903
904 // munge the requested path and dump it
905 char mungedPath[MaxPath];
906 char cwd[MaxPath];
907 getcwd(cwd, MaxPath);
908 MungePath(mungedPath, MaxPath, path, cwd);
909 return RecurseDumpPath(mungedPath, path, pattern, fileVector, depth);
910}
911
912//-----------------------------------------------------------------------------
913bool Platform::isFile(const char *pFilePath)

Callers

nothing calls this directly

Calls 3

MungePathFunction · 0.70
GetPrefDirFunction · 0.70
RecurseDumpPathFunction · 0.70

Tested by

no test coverage detected