From 50b7bf9d822c2216ac7a0a40bef796aca9baf854 Mon Sep 17 00:00:00 2001 From: Luc Rancourt Date: Tue, 20 Feb 2024 20:10:22 +0100 Subject: [PATCH] Fix ls_with_sizes for gs. --- tiledb/sm/filesystem/gcs.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiledb/sm/filesystem/gcs.cc b/tiledb/sm/filesystem/gcs.cc index 52a076acdc3..59ef5e87065 100644 --- a/tiledb/sm/filesystem/gcs.cc +++ b/tiledb/sm/filesystem/gcs.cc @@ -452,7 +452,8 @@ tuple>> 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( results)) {