Changeset 14177


Ignore:
Timestamp:
2007-06-13T19:18:47+12:00 (14 years ago)
Author:
mdewsnip
Message:

Now ignores .svn directories as well as CVS directories.

File:
1 edited

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);
Note: See TracChangeset for help on using the changeset viewer.