destination = bf::unique_path(target.parent_path() / "%%%%-%%%%-%%%%-%%%%");
}
if (flags & FS_MERGE_OVERWRITE) {
- bf::copy_file(current, destination, bf::copy_option::overwrite_if_exists);
+ bf::copy_file(current, destination, bf::copy_options::overwrite_existing);
} else {
bf::copy_file(current, destination);
}
if (!exist(path1)) {
return false;
}
- bf::copy_file(path1, path2, bf::copy_option::overwrite_if_exists, error);
+ bf::copy_file(path1, path2, bf::copy_options::overwrite_existing, error);
if (error) {
_ERR("copy file %s due to error [%s]", path1.c_str(), error.message().c_str());
return false;
bf::rename(path1, path2, error);
if (error) {
_ERR("Cannot move file: %s. Will copy/remove... with error [%s]", path1.c_str(), error.message().c_str());
- bf::copy_file(path1, path2, bf::copy_option::overwrite_if_exists, error);
+ bf::copy_file(path1, path2, bf::copy_options::overwrite_existing, error);
if (error) {
_ERR("Cannot copy file %s due to error [%s]", path1.c_str(), error.message().c_str());
return false;