Skip to content

Commit

Permalink
Fix ls_with_sizes for gs.
Browse files Browse the repository at this point in the history
  • Loading branch information
KiterLuc committed Feb 28, 2024
1 parent a84a704 commit 50b7bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tiledb/sm/filesystem/gcs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ tuple<Status, optional<std::vector<directory_entry>>> GCS::ls_with_sizes(
}

auto& results = object_metadata.value();
const std::string gcs_prefix = uri_dir.is_gcs() ? "gcs://" : "gs://";
const std::string gcs_prefix =
uri_dir.backend_name() == "gcs" ? "gcs://" : "gs://";

if (absl::holds_alternative<google::cloud::storage::ObjectMetadata>(
results)) {
Expand Down

0 comments on commit 50b7bf9

Please sign in to comment.