summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);