bool clCxxWorkspace::IsVirtualDirectoryExists(const wxString& vdFullPath) { wxStringTokenizer tkz(vdFullPath, wxT(":")); wxString projName = tkz.GetNextToken(); wxString fixedPath; // Construct new path excluding the first token size_t count = tkz.CountTokens(); for(size_t i = 0; i < count - 1; i++) { fixedPath += tkz.GetNextToken(); fixedPath += wxT(":"); } fixedPath += tkz.GetNextToken(); wxString errMsg; ProjectPtr proj = FindProjectByName(projName, errMsg); if(!proj) { return false; } wxXmlNode* vdNode = proj->GetVirtualDir(fixedPath); return vdNode != NULL; }