diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-03-01 09:07:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-03-01 09:07:02 +0000 |
| commit | 4c1039131b96f0e2cac8724e54a2e90d7afdad32 (patch) | |
| tree | 0cd1b6343c6682943326e3d9c29fd094ffa7adcd | |
| parent | ef74d191989b4c81caa3f61804d936fa96a8e0fe (diff) | |
Ignore .DS_Store files in potential image directories.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/lib/content_factory.cc | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2016-03-01 c.hetherington <cth@carlh.net> + + * Fix failure to recognise image sequence directories + in some cases. + 2016-03-01 Carl Hetherington <cth@carlh.net> * Version 2.6.29 released. diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc index e1535c510..c3278e30e 100644 --- a/src/lib/content_factory.cc +++ b/src/lib/content_factory.cc @@ -101,9 +101,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(), "._")) { + if (boost::starts_with (i->path().leaf().string(), "._") || i->path().leaf().string() == ".DS_Store") { /* We ignore these files */ - LOG_GENERAL ("Ignored %1 (starts with {._})", i->path()); + LOG_GENERAL ("Ignored %1 (starts with {._}, or .DS_Store)", i->path()); continue; } |
