Note that newer libsub version is required.
[dcpomatic.git] / src / lib / content_factory.cc
index e1278c3b475d41f3711d69b81501d17a909990fc..dfa1ba55e4d4795ebdc66e23408390ec7c1b7814 100644 (file)
@@ -129,7 +129,7 @@ content_factory (boost::filesystem::path path)
 
                        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;