#include "dcp.h"
#include "decrypted_kdm.h"
#include "exceptions.h"
+#include "filesystem.h"
#include "search.h"
vector<shared_ptr<dcp::DCP>> dcps;
for (auto i: directories) {
+ if (!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 (¬es, true);
for (auto i: dcps) {
for (auto j: dcps) {
if (i != j) {
- i->resolve_refs(j->assets());
+ i->resolve_refs(j->assets(true));
}
}
}