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

Function isCachePath

engine/source/platformAndroid/AndroidFileio.cpp:48–76  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Cache handling functions -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

46//Cache handling functions
47//-----------------------------------------------------------------------------
48bool 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
78bool isUserDataPath(const char* path)
79{

Callers 7

openMethod · 0.85
isFileMethod · 0.85
isDirectoryMethod · 0.85
getFileSizeMethod · 0.85
hasSubDirectoryMethod · 0.85
dumpDirectoriesMethod · 0.85
dumpPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected