MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / getAppInternalCacheDir

Method getAppInternalCacheDir

KittyMemoryEx/KittyUtils.cpp:101–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 std::string Android::getAppInternalCacheDir(const std::string &packageName)
102 {
103 std::string dir = "/data/data/";
104 dir += packageName;
105 dir += "/cache";
106 if (access(dir.c_str(), F_OK) == 0)
107 return dir;
108
109 dir = "/data/user/";
110 dir += std::to_string(getUserId());
111 dir += "/";
112 dir += packageName;
113 dir += "/cache";
114 if (access(dir.c_str(), F_OK) == 0)
115 return dir;
116
117 return std::string();
118 }
119#endif
120
121 std::string Path::fileName(const std::string &filePath)

Callers

nothing calls this directly

Calls 1

getUserIdFunction · 0.85

Tested by

no test coverage detected