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

Method isDirectory

engine/source/platformEmscripten/EmscriptenFileio.cpp:946–961  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

944
945//-----------------------------------------------------------------------------
946bool Platform::isDirectory(const char *pDirPath)
947{
948 if (!pDirPath || !*pDirPath)
949 return false;
950
951 // Get file info
952 struct stat fStat;
953 if (stat(pDirPath, &fStat) < 0)
954 return false;
955
956 // if the file is a Directory then true
957 if ( (fStat.st_mode & S_IFMT) == S_IFDIR)
958 return true;
959
960 return false;
961}
962
963//-----------------------------------------------------------------------------
964bool Platform::isSubDirectory(const char *pParent, const char *pDir)

Callers

nothing calls this directly

Calls 1

statClass · 0.70

Tested by

no test coverage detected