refactor s3 provider
Some checks failed
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head There was a failure building this commit

This commit is contained in:
Scott E. Graves 2023-11-11 16:42:38 -06:00
parent 1ee533591c
commit 281eedb71e
2 changed files with 3 additions and 1 deletions

View File

@ -196,6 +196,7 @@ public:
CURLcode curl_code{};
curl_request.get_result(curl_code, response_code);
if (curl_code != CURLE_OK) {
std::cout << curl_easy_strerror(curl_code) << std::endl;
return false;
}

View File

@ -48,7 +48,8 @@ auto http_put_file::set_method(CURL *curl, stop_type &stop_requested) const
stop_requested,
});
if (native_file::open(source_path, read_info->nf) != api_error::success) {
if (native_file::create_or_open(source_path, read_info->nf) !=
api_error::success) {
return false;
}