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

Method destroy

cppcryptfs/dokan/MountPointManager.cpp:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool MountPointManager::destroy(const wchar_t *mountpoint)
81{
82 wstring mpstr;
83 if (!find(mountpoint, mpstr)) {
84 return false;
85 }
86 bool result = true;
87 auto it = m_tdatas.find(mpstr);
88 if (it != m_tdatas.end()) {
89 delete it->second;
90 m_tdatas.erase(it);
91 } else {
92 result = false;
93 }
94 return result;
95}
96
97BOOL MountPointManager::wait_and_destroy(const WCHAR* mountpoint)
98{

Callers 1

mount_crypt_fsFunction · 0.80

Calls 2

findMethod · 0.80
eraseMethod · 0.80

Tested by

no test coverage detected