Add an option to dump the decryption certificate from the KDM CLI.
[dcpomatic.git] / src / lib / types.cc
index 3ac3690c0bd8dfccb567b67ae693a389d63e6d71..58382fdc71312bc580c3dc611ffabf481dbeba6b 100644 (file)
@@ -23,6 +23,7 @@
 #include "dcpomatic_assert.h"
 #include <dcp/cpl.h>
 #include <dcp/dcp.h>
+#include <dcp/filesystem.h>
 #include <dcp/raw_convert.h>
 #include <dcp/reel_asset.h>
 #include <dcp/reel_file_asset.h>
@@ -44,7 +45,7 @@ using dcp::raw_convert;
 
 
 CPLSummary::CPLSummary (boost::filesystem::path p)
-       : dcp_directory (p.leaf().string())
+       : dcp_directory(p.filename().string())
 {
        dcp::DCP dcp (p);
 
@@ -71,7 +72,7 @@ CPLSummary::CPLSummary (boost::filesystem::path p)
        }
 
        boost::system::error_code ec;
-       auto last_write = boost::filesystem::last_write_time (p, ec);
+       auto last_write = dcp::filesystem::last_write_time(p, ec);
        last_write_time = ec ? 0 : last_write;
 }