| 76 | } |
| 77 | |
| 78 | bool isUserDataPath(const char* path) |
| 79 | { |
| 80 | if (!path || !*path) |
| 81 | return false; |
| 82 | |
| 83 | if (path[0] == '/') |
| 84 | { |
| 85 | if (strstr(path, Platform::getUserDataDirectory()) != NULL) |
| 86 | { |
| 87 | return true; |
| 88 | } |
| 89 | else |
| 90 | { |
| 91 | return false; |
| 92 | } |
| 93 | } |
| 94 | else |
| 95 | { |
| 96 | const char* tmp = Platform::getUserDataDirectory(); |
| 97 | if (strstr(path, tmp+1) != NULL) |
| 98 | { |
| 99 | return true; |
| 100 | } |
| 101 | else |
| 102 | { |
| 103 | return false; |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | //----------------------------------------------------------------------------- |
| 109 | bool Platform::fileDelete(const char * name) |
no outgoing calls
no test coverage detected