Changeset 14177

Show
Ignore:
Timestamp:
13.06.2007 19:18:47 (12 years ago)
Author:
mdewsnip
Message:

Now ignores .svn directories as well as CVS directories.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/lib/fileutil.cpp

    r9983 r14177  
    186186   
    187187  text_t filename = FileData.cFileName; 
    188   if (filename != "." && filename != ".." && filename != "CVS") 
     188  if (filename != "." && filename != ".." && filename != "CVS" && filename != ".svn") 
    189189    filelist.insert (filename);  
    190190   
    191191  while (FindNextFile(hSearch, &FileData)) { 
    192192    filename = FileData.cFileName; 
    193     if (filename == "." || filename == ".." || filename == "CVS") 
     193    if (filename == "." || filename == ".." || filename == "CVS" || filename == ".svn") 
    194194      continue; 
    195195    filelist.insert (filename);  
     
    217217   
    218218  text_t filename = FileData.cFileName; 
    219   if (filename != "." && filename != ".." && filename != "CVS") 
     219  if (filename != "." && filename != ".." && filename != "CVS" && filename != ".svn") 
    220220    filelist.push_back (filename);  
    221221   
    222222  while (FindNextFile(hSearch, &FileData)) { 
    223223    filename = FileData.cFileName; 
    224     if (filename == "." || filename == ".." || filename == "CVS") 
     224    if (filename == "." || filename == ".." || filename == "CVS" || filename == ".svn") 
    225225      continue; 
    226226    filelist.push_back (filename);  
     
    261261  while ((dirp = readdir (dirin)) != NULL) { 
    262262    filename = dirp->d_name; 
    263     if (filename == "." || filename == ".." || filename == "CVS") 
     263    if (filename == "." || filename == ".." || filename == "CVS" || filename == ".svn") 
    264264      continue; 
    265265    filelist.insert (filename); 
     
    282282  while ((dirp = readdir (dirin)) != NULL) { 
    283283    filename = dirp->d_name; 
    284     if (filename == "." || filename == ".." || filename == "CVS") 
     284    if (filename == "." || filename == ".." || filename == "CVS" || filename == ".svn") 
    285285      continue; 
    286286    filelist.push_back (filename);