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

Method get_path

cppcryptfs/dokan/MountPointManager.cpp:203–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203bool MountPointManager::get_path(const WCHAR *mountpoint, wstring& path) const
204{
205 wstring mpstr;
206 if (!find(mountpoint, mpstr)) {
207 return false;
208 }
209 auto it = m_tdatas.find(mpstr);
210 if (it == m_tdatas.end()) {
211 return false;
212 }
213
214 path = it->second->con.GetConfig()->m_basedir;
215
216 // get rid of leading \\?\ for display
217 if (!wcsncmp(path.c_str(), L"\\\\?\\", wcslen(L"\\\\?\\"))) {
218 path = path.c_str() + wcslen(L"\\\\?\\");
219 }
220 return true;
221}
222
223void MountPointManager::get_mount_points(vector<wstring>& mps, function<bool(const wchar_t *)> filter) const
224{

Callers 1

DeviceChangeMethod · 0.80

Calls 2

findMethod · 0.80
GetConfigMethod · 0.80

Tested by

no test coverage detected