Use dcp::filesystem to wrap filesystem calls and fix_long_path
[dcpomatic.git] / src / wx / config_dialog.cc
index fdb7947dab6e81d04abaa950c87b1326857e4438..00ae80a4c8f1f30079efa58d555ced06cb7cb803 100644 (file)
@@ -27,6 +27,7 @@
 #include "static_text.h"
 #include "lib/constants.h"
 #include <dcp/file.h>
+#include <dcp/filesystem.h>
 #include <dcp/raw_convert.h>
 
 
@@ -576,7 +577,7 @@ CertificateChainEditor::import_private_key ()
        if (d->ShowModal() == wxID_OK) {
                try {
                        boost::filesystem::path p (wx_to_std (d->GetPath ()));
-                       if (boost::filesystem::file_size (p) > 8192) {
+                       if (dcp::filesystem::file_size(p) > 8192) {
                                error_dialog (
                                        this,
                                        wxString::Format (_("Could not read key file; file is too long (%s)"), std_to_wx (p.string ()))