From f0f4dd5e6b6ed5e50d0444a4de3b2a13156edf64 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 6 Oct 2023 02:37:16 +0200 Subject: Use dcp::filesystem to wrap filesystem calls and fix_long_path anything that is passed to read_file() from libcxml. This should fix #2623 and other similar problems. --- src/tools/dcpomatic_create.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tools/dcpomatic_create.cc') diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index 63889a597..5b5f4dba2 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -36,6 +36,7 @@ #include "lib/version.h" #include "lib/video_content.h" #include +#include #include #include #include @@ -94,10 +95,10 @@ main (int argc, char* argv[]) auto film = cc.make_film(); for (auto cli_content: cc.content) { - auto const can = boost::filesystem::canonical (cli_content.path); + auto const can = dcp::filesystem::canonical(cli_content.path); vector> film_content_list; - if (boost::filesystem::exists (can / "ASSETMAP") || (boost::filesystem::exists (can / "ASSETMAP.xml"))) { + if (dcp::filesystem::exists(can / "ASSETMAP") || (dcp::filesystem::exists(can / "ASSETMAP.xml"))) { auto dcp = make_shared(can); film_content_list.push_back (dcp); if (cli_content.kdm) { -- cgit v1.2.3