MCPcopy Create free account
hub / github.com/defold/defold / RemoveCachedContentFile

Function RemoveCachedContentFile

engine/dlib/src/dlib/http_cache.cpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 static void RemoveCachedContentFile(HCache cache, uint64_t identifier_hash)
167 {
168 char path[DMPATH_MAX_PATH];
169 ContentFilePath(cache, identifier_hash, path, sizeof(path));
170 dmSys::Result r = dmSys::Unlink(path);
171 if (r != dmSys::RESULT_OK)
172 {
173 dmLogWarning("Unable to remove %s", path);
174 cache->m_Dirty = true;
175 }
176 }
177
178 static bool IsValidHeader(IndexHeader* header)
179 {

Callers 1

OpenFunction · 0.85

Calls 2

ContentFilePathFunction · 0.85
UnlinkFunction · 0.70

Tested by

no test coverage detected