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:
2023-11-11 16:28:00 -06:00
parent b87e1df140
commit 1ee533591c
3 changed files with 30 additions and 27 deletions

View File

@@ -819,12 +819,11 @@ auto sia_provider::is_directory(const std::string &api_path, bool &exists) const
auto sia_provider::is_file(const std::string &api_path, bool &exists) const
-> api_error {
exists = false;
if (api_path == "/") {
return api_error::success;
}
exists = false;
try {
json file_data{};
auto res = get_object_info(api_path, file_data);