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)) {