summaryrefslogtreecommitdiff
path: root/src/filesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesystem.h')
-rw-r--r--src/filesystem.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/filesystem.h b/src/filesystem.h
index 53ec209d..a06dc69e 100644
--- a/src/filesystem.h
+++ b/src/filesystem.h
@@ -51,7 +51,14 @@ boost::filesystem::path change_extension(boost::filesystem::path const& from, st
void copy(boost::filesystem::path const& from, boost::filesystem::path const& to);
void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to);
void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to, boost::system::error_code& ec);
-void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to, boost::filesystem::copy_option ec);
+
+enum class CopyOptions
+{
+ NONE,
+ OVERWRITE_EXISTING
+};
+
+void copy_file(boost::filesystem::path const& from, boost::filesystem::path const& to, CopyOptions options);
bool create_directory(boost::filesystem::path const& path);
bool create_directory(boost::filesystem::path const& path, boost::system::error_code& ec);
bool create_directories(boost::filesystem::path const& path);