summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-12 14:19:13 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-12 14:19:13 +0200
commit06ccbd71896e73221122ef61014dd64fe345536a (patch)
treecd2967fa3799a565ef1dffac45e7284da0a2ebff /src/lib
parent92850afea113c10c0bdf773b22a4165673238a5a (diff)
Ignore .AppleDouble folders inside DCPs.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp_content.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index b521234fc..eb1c5f42c 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -203,7 +203,7 @@ DCPContent::read_sub_directory (boost::filesystem::path p)
if (boost::filesystem::is_regular_file(i.path())) {
LOG_GENERAL ("Inside there's regular file %1", i.path().string());
add_path (i.path());
- } else if (boost::filesystem::is_directory (i.path())) {
+ } else if (boost::filesystem::is_directory(i.path()) && i.path().filename() != ".AppleDouble") {
LOG_GENERAL ("Inside there's directory %1", i.path().string());
read_sub_directory (i.path());
}