----------------------------------------------------------------------------- Cache handling functions -----------------------------------------------------------------------------
| 46 | //Cache handling functions |
| 47 | //----------------------------------------------------------------------------- |
| 48 | bool isCachePath(const char* path) |
| 49 | { |
| 50 | if (!path || !*path) |
| 51 | return false; |
| 52 | |
| 53 | if (path[0] == '/') |
| 54 | { |
| 55 | if (strstr(path, Platform::osGetTemporaryDirectory()) != NULL) |
| 56 | { |
| 57 | return true; |
| 58 | } |
| 59 | else |
| 60 | { |
| 61 | return false; |
| 62 | } |
| 63 | } |
| 64 | else |
| 65 | { |
| 66 | const char* tmp = Platform::osGetTemporaryDirectory(); |
| 67 | if (strstr(path, tmp+1) != NULL) |
| 68 | { |
| 69 | return true; |
| 70 | } |
| 71 | else |
| 72 | { |
| 73 | return false; |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | bool isUserDataPath(const char* path) |
| 79 | { |
no outgoing calls
no test coverage detected