Add wrappers around boost::filesystem methods that handle the
[libdcp.git] / tools / dcpdiff.cc
index 3dace12adb1a00dcae366822ac6a1fdc30703fd5..7c7c4b71da2ef8d3c70e2c4bf3342cbd612234f1 100644 (file)
 */
 
 
+#include "common.h"
 #include "dcp.h"
 #include "equality_options.h"
 #include "exceptions.h"
-#include "common.h"
+#include "filesystem.h"
 #include "mxf.h"
 #include <getopt.h>
 #include <boost/optional.hpp>
@@ -207,12 +208,12 @@ main (int argc, char* argv[])
                exit (EXIT_FAILURE);
        }
 
-       if (!boost::filesystem::exists (argv[optind])) {
+       if (!filesystem::exists(argv[optind])) {
                cerr << argv[0] << ": DCP " << argv[optind] << " not found.\n";
                exit (EXIT_FAILURE);
        }
 
-       if (!boost::filesystem::exists (argv[optind + 1])) {
+       if (!filesystem::exists(argv[optind + 1])) {
                cerr << argv[0] << ": DCP " << argv[optind + 1] << " not found.\n";
                exit (EXIT_FAILURE);
        }