Use dcp::filesystem to wrap filesystem calls and fix_long_path
[dcpomatic.git] / src / tools / dcpomatic_cli.cc
index 3e1e13c515f84a1ce60e4938833e44541fbb9923..96bf830863f2b53266a34176357c8d29f97237fe 100644 (file)
@@ -39,6 +39,7 @@
 #include "lib/util.h"
 #include "lib/version.h"
 #include "lib/video_content.h"
+#include <dcp/filesystem.h>
 #include <dcp/version.h>
 #include <getopt.h>
 #include <iostream>
@@ -442,7 +443,7 @@ main (int argc, char* argv[])
        for (auto i: film->content()) {
                auto paths = i->paths();
                for (auto j: paths) {
-                       if (!boost::filesystem::exists(j)) {
+                       if (!dcp::filesystem::exists(j)) {
                                cerr << argv[0] << ": content file " << j << " not found.\n";
                                exit (EXIT_FAILURE);
                        }