+ dir = namestr.BeforeLast(wxT('/'));
+ while (!dir.empty())
+ {
+ if( m_DirsFound->find(dir) == m_DirsFound->end() )
+ {
+ (*m_DirsFound)[dir] = 1;
+ filename = dir.AfterLast(wxT('/'));
+ dir = dir.BeforeLast(wxT('/'));
+ if (!filename.empty() && m_BaseDir == dir &&
+ wxMatchWild(m_Pattern, filename, false))
+ match = m_ZipFile + wxT("#zip:") + dir + wxT("/") + filename;
+ }
+ else
+ break; // already tranversed
+ }