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

Method GetOpenFile

libcppcryptfs/file/openfiles.cpp:85–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85shared_ptr<CryptOpenFile> CryptOpenFiles::GetOpenFile(LPCWSTR path)
86{
87 wstring ucpath;
88
89 if (!touppercase(path, ucpath)) {
90 return nullptr;
91 }
92
93 lock_guard<mutex> lock(m_mutex);
94
95 auto it = m_openfiles.find(ucpath);
96
97 if (it == m_openfiles.end()) {
98 return nullptr;
99 }
100
101 return it->second;
102}
103
104bool CryptOpenFiles::Rename(LPCWSTR from, LPCWSTR to)
105{

Callers 1

AssociateMethod · 0.80

Calls 2

touppercaseFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected