Changeset 4193 for trunk/MagicSoft
- Timestamp:
- 05/26/04 15:07:29 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MDirIter.cc
r2377 r4193 195 195 Bool_t MDirIter::MatchFilter(const TString &n, const TString &f) const 196 196 { 197 return f.IsNull() || !n(TRegexp(f, kTRUE)).IsNull(); 197 // As the filter string may contain a + character, we have to replace 198 // this filter by a new filter contaning a \+ at all locations where a + 199 // was in the original filter. 200 TString nf(f); 201 nf.ReplaceAll("+","\\+"); 202 203 return f.IsNull() || !n(TRegexp(nf, kTRUE)).IsNull(); 198 204 } 199 205 … … 238 244 // Check global filter 239 245 if (!MatchFilter(n, fFilter)) 240 return kFALSE;246 return kFALSE; 241 247 242 248 // Check for file or directory … … 247 253 // Check for rread perissions 248 254 return !gSystem->AccessPathName(fqp, kReadPermission); 255 249 256 } 250 257
Note:
See TracChangeset
for help on using the changeset viewer.