Ignore any hidden files when looking for images.
authorCarl Hetherington <cth@carlh.net>
Thu, 16 Jun 2016 00:02:10 +0000 (01:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 16 Jun 2016 00:02:10 +0000 (01:02 +0100)
We used to do ._* and .DS_Store but there has been a report of
.com.apple.timemachine.supported.

ChangeLog
src/lib/content_factory.cc

index 71e89e72460322aba1d8c92d1f2206ee147a9cea..da87cb96a37cb1355c1d64045b20d7bc0a97b2b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2016-06-16  Carl Hetherington  <cth@carlh.net>
 
+       * Ignore any hidden files when looking for image files.
+
        * Remove seconds from KDM time period specification (#819).
 
 2016-06-14  c.hetherington  <cth@carlh.net>
index 7b02ee111aff45502f16d1f66f7875d26f6ede10..38112b968564e96ae6399af3575cd381986a5139 100644 (file)
@@ -128,9 +128,9 @@ content_factory (shared_ptr<const Film> film, boost::filesystem::path path)
 
                        LOG_GENERAL ("Checking file %1", i->path());
 
-                       if (boost::starts_with (i->path().leaf().string(), "._") || i->path().leaf().string() == ".DS_Store") {
-                               /* We ignore these files */
-                               LOG_GENERAL ("Ignored %1 (starts with {._}, or .DS_Store)", i->path());
+                       if (boost::starts_with (i->path().leaf().string(), ".")) {
+                               /* We ignore hidden files */
+                               LOG_GENERAL ("Ignored %1 (starts with .)", i->path());
                                continue;
                        }