(file) Return to FileSystem.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/FileSystem.cpp between version 1.71.6.3 and 1.71.6.5

version 1.71.6.3, 2007/09/12 16:18:48 version 1.71.6.5, 2007/09/20 20:00:21
Line 76 
Line 76 
  
 Boolean FileSystem::existsNoCase(const String& path, String& realPath) Boolean FileSystem::existsNoCase(const String& path, String& realPath)
 { {
       // If a file exists that has the same case as the path parmater,
       // then we can bypass the expensive directory scanning below.
   
       if (FileSystem::exists(path))
       {
           realPath = path;
           return true;
       }
   
     realPath.clear();     realPath.clear();
     CString cpath = _clonePath(path);     CString cpath = _clonePath(path);
     const char* p = cpath;     const char* p = cpath;
Line 603 
Line 612 
             if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0)             if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0)
                 continue;                 continue;
  
             if (Match(name, pattern) == 0)              if (Match(pattern, name) == 0)
                 filenames.append(name);                 filenames.append(name);
         }         }
     }     }


Legend:
Removed from v.1.71.6.3  
changed lines
  Added in v.1.71.6.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2