summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-16 01:02:10 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-16 01:02:10 +0100
commit62d85b58f09066f3dbd424ab190f07420c2cba84 (patch)
tree39b14c7fa7d0b13c3677b840f5ce2dbdec431875 /src
parent1dd9fb73e28f079fb0d4ee46ab3e18008e42aca2 (diff)
Ignore any hidden files when looking for images.
We used to do ._* and .DS_Store but there has been a report of .com.apple.timemachine.supported.
Diffstat (limited to 'src')
-rw-r--r--src/lib/content_factory.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/content_factory.cc b/src/lib/content_factory.cc
index 7b02ee111..38112b968 100644
--- a/src/lib/content_factory.cc
+++ b/src/lib/content_factory.cc
@@ -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;
}