X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flastfiles.C;h=537d611c619938840edd0850f16e007064b24efb;hb=2bb86211292f416cd584023feb23dc3b86bc1761;hp=ef200b2c9d992c2f9941e77d107082edd069d337;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/lastfiles.C b/src/lastfiles.C index ef200b2c9d..537d611c61 100644 --- a/src/lastfiles.C +++ b/src/lastfiles.C @@ -13,13 +13,13 @@ #include "lastfiles.h" #include "debug.h" -#include "support/FileInfo.h" +#include #include #include #include -using lyx::support::FileInfo; +namespace fs = boost::filesystem; using std::copy; using std::endl; @@ -58,14 +58,10 @@ void LastFiles::readFile(string const & filename) // we issue a warning. (Lgb) ifstream ifs(filename.c_str()); string tmp; - FileInfo fileInfo; while (getline(ifs, tmp) && files.size() < num_files) { - if (dostat) { - if (!(fileInfo.newFile(tmp).exist() && - fileInfo.isRegular())) + if (dostat && !fs::exists(tmp)) continue; - } files.push_back(tmp); } }