diff --git a/src/App/Document.cpp b/src/App/Document.cpp index bd99723f0ff7a..335d8e16afc1f 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -1669,15 +1669,16 @@ class BackupPolicy { Base::FileInfo di(fi.dirPath()); std::vector backup; std::vector files = di.getDirectoryContent(); + /********** If FOR block commented, CI passes *************/ for (std::vector::iterator it = files.begin(); it != files.end(); ++it) { - if (it->isFile()) { + Base::Console().Warning("FILE\n"); + /*if (it->exists() && it->isFile()) { std::string file = it->fileName(); std::string fext = it->extension(); std::string fextUp = fext; std::transform(fextUp.begin(), fextUp.end(), fextUp.begin(),(int (*)(int))toupper); // re-enforcing identification of the backup file - // old case : the name starts with the full name of the project and follows with numbers if ((startsWith(file, fn) && (file.length() > fn.length()) && @@ -1688,7 +1689,7 @@ class BackupPolicy { (checkValidComplement(file, pbn, fext)))) { backup.push_back(*it); } - } + }*/ } if (!backup.empty() && (int)backup.size() >= numberOfFiles) { @@ -1711,7 +1712,6 @@ class BackupPolicy { } } } - } } //end remove backup