LOG_GENERAL ("Checking file %1", i->path());
- if (boost::starts_with (i->path().leaf().string(), ".")) {
+ if (boost::starts_with(i->path().filename().string(), ".")) {
/* We ignore hidden files */
LOG_GENERAL ("Ignored %1 (starts with .)", i->path());
continue;