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

Method isDirectory

engine/source/platformAndroid/AndroidFileio.cpp:859–879  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

857
858//-----------------------------------------------------------------------------
859bool Platform::isDirectory(const char *path)
860{
861 if (!path || !*path)
862 return false;
863
864 if (isCachePath(path) || isUserDataPath(path))
865 {
866 // make sure we can stat the file
867 struct stat statData;
868 if( stat(path, &statData) < 0 )
869 return false;
870
871 // now see if it's a directory
872 if( (statData.st_mode & S_IFMT) == S_IFDIR)
873 return true;
874
875 return false;
876 }
877
878 return android_IsDir(path);
879}
880
881
882S32 Platform::getFileSize(const char* pFilePath)

Callers

nothing calls this directly

Calls 4

isCachePathFunction · 0.85
isUserDataPathFunction · 0.85
android_IsDirFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected