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

Method getFileSize

engine/source/platformAndroid/AndroidFileio.cpp:882–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880
881
882S32 Platform::getFileSize(const char* pFilePath)
883{
884 if (!pFilePath || !*pFilePath)
885 return 0;
886
887 if (isCachePath(pFilePath) || isUserDataPath(pFilePath))
888 {
889 struct stat statData;
890 if( stat(pFilePath, &statData) < 0 )
891 return 0;
892
893 // and return it's size in bytes
894 return (S32)statData.st_size;
895 }
896
897 return android_GetFileSize(pFilePath);
898}
899
900
901//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

isCachePathFunction · 0.85
isUserDataPathFunction · 0.85
android_GetFileSizeFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected