diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-10-06 02:04:49 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-09 01:20:01 +0200 |
| commit | e4b2ebd80779a44d24fe87af26ef278c1e2d97d2 (patch) | |
| tree | 3bc940c5eb49c96c3c18a896c8ccd8039e6db839 /src/search.cc | |
| parent | 3be26a66645de04c7b220abeebfd2f024990a696 (diff) | |
Add wrappers around boost::filesystem methods that handle the
required mangling of long filenames on Windows.
Also wrap lots of missing places (e.g. calls to asdcplib, libxml++,
libcxml etc.) in dcp::filesystem::fix_long_path().
The idea is to keep paths un-mangled until they we call some
filesystem-related API and mangle them at that point. Otherwise
we end up serialising mangled names, which seems like it will
not end well.
Should fix DoM #2623.
Diffstat (limited to 'src/search.cc')
| -rw-r--r-- | src/search.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search.cc b/src/search.cc index f45a2fb9..e7871dc6 100644 --- a/src/search.cc +++ b/src/search.cc @@ -35,6 +35,7 @@ #include "dcp.h" #include "decrypted_kdm.h" #include "exceptions.h" +#include "filesystem.h" #include "search.h" @@ -59,7 +60,7 @@ 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)) { + 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). */ |
