MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / purge

Method purge

libcppcryptfs/filename/casecache.cpp:444–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444bool CaseCache::purge(LPCWSTR path)
445{
446 bool bRet = true;
447
448 wstring ucpath;
449
450 if (!touppercase(path, ucpath))
451 return false;
452
453 lock();
454
455 try {
456
457 auto it = m_map.find(ucpath);
458
459 if (it == m_map.end()) {
460 bRet = false;
461 } else {
462 remove_node(it);
463 }
464 } catch (...) {
465 bRet = false;
466 }
467
468 unlock();
469
470 return bRet;
471}
472
473// use our own callback so rest of the code doesn't need to know about Dokany internals
474static int WINAPI casecache_fill_find_data(PWIN32_FIND_DATAW fdata, PWIN32_FIND_DATAW fdata_orig, void * dokan_cb, void * dokan_ctx)

Callers 1

Calls 2

touppercaseFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected