summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-26 19:43:47 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-26 19:43:47 +0200
commit8e971733f7e001f944d6dd29193938ebadafd0be (patch)
tree87574e7ae3f5e9d8190168ae68f19b9720fd7385 /src
parent69bb11ec05164443339a3af2f4566881278fd907 (diff)
Don't try to create non-existent DCPs when searching for CPLs (DoM #2344).
Diffstat (limited to 'src')
-rw-r--r--src/search.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/search.cc b/src/search.cc
index dd02a2e0..f45a2fb9 100644
--- a/src/search.cc
+++ b/src/search.cc
@@ -59,6 +59,12 @@ dcp::find_and_resolve_cpls (vector<boost::filesystem::path> const& directories,
vector<shared_ptr<dcp::DCP>> dcps;
for (auto i: directories) {
+ if (!boost::filesystem::exists(i)) {
+ /* Don't make a DCP object or it will try to create the parent directories
+ * of i if they do not exist (#2344).
+ */
+ continue;
+ }
auto dcp = make_shared<dcp::DCP>(i);
vector<dcp::VerificationNote> notes;
dcp->read (&notes, true);