diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-25 02:10:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-25 02:10:44 +0200 |
| commit | c0418f2a763407424d986c82ed147fbeaa2d9416 (patch) | |
| tree | d59c1e80a82b5d25d1f48bbfe4790126ba865077 /src/filesystem.h | |
| parent | 540b9948e4a2fd4e52a2b29ed2089a0dc61d4cc6 (diff) | |
| parent | 152266f6e65451a03521eb04b6a406b6e309e17a (diff) | |
Merge remote-tracking branch 'origin/main' into v1.9.xv1.9.22
Diffstat (limited to 'src/filesystem.h')
| -rw-r--r-- | src/filesystem.h | 9 |
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); |
