| 880 | |
| 881 | |
| 882 | S32 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 | //----------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected