Ignore .AppleDouble folders inside DCPs.
authorCarl Hetherington <cth@carlh.net>
Tue, 12 Oct 2021 12:19:13 +0000 (14:19 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 12 Oct 2021 12:19:27 +0000 (14:19 +0200)
src/lib/dcp_content.cc

index b521234fcacbc1a8a87c472a7f743b08ea7995f4..eb1c5f42c2a3a5b525da1f01fe219fc72ef8e7fd 100644 (file)
@@ -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());
                }