-----------------------------------------------------------------------------
| 857 | |
| 858 | //----------------------------------------------------------------------------- |
| 859 | bool 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 | |
| 882 | S32 Platform::getFileSize(const char* pFilePath) |
nothing calls this directly
no test coverage detected