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

Method IsPathMounted

cppcryptfs/ui/MountPropertyPage.cpp:2053–2070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2051}
2052
2053bool CMountPropertyPage::IsPathMounted(LPCWSTR path)
2054{
2055 CListCtrl* pList = (CListCtrl*)GetDlgItem(IDC_DRIVE_LETTERS);
2056
2057 if (!pList)
2058 return false;
2059
2060 auto count = pList->GetItemCount();
2061
2062 for (int i = 0; i < count; ++i) {
2063 CString mounted_path = pList->GetItemText(i, PATH_INDEX);
2064 if (mounted_path == path) {
2065 return true;
2066 }
2067 }
2068
2069 return false;
2070}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected