Skip to content

No objects returns when delimeter = "/" is set #200

@erydit

Description

@erydit

Hello!

I am working with the public Sentinel-2 bucket ( https://console.cloud.google.com/storage/browser/gcp-public-data-sentinel-2 , https://console.cloud.google.com/marketplace/product/esa-public-data/sentinel2?project=rivcmonitor ).

and before the last update the following code was working:

library(googleCloudStorageR)

gcs_auth(json_file = gcs_json)
gcs_sentinel2_bucket <- gcs_get_bucket(bucket = "gcp-public-data-sentinel-2")

entries <- gcs_list_objects(
        bucket = "gcp-public-data-sentinel-2",
        detail = "more",
        prefix = "L2/tiles/38/U/PF/",
        delimiter = "/",
        versions = FALSE)

That code successfully return a data frame with all folders of sentinel2 scenes (https://console.cloud.google.com/storage/browser/gcp-public-data-sentinel-2/L2/tiles/38/U/PF)
Now it returns an error:

Warning

ℹ 2026-03-13 17:04:06.331419 > No objects found
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 0, 1

However, the code without delimiter works as expected:

entries <- gcs_list_objects(
        bucket = "gcp-public-data-sentinel-2",
        detail = "more",
        prefix = "L2/tiles/38/U/PF/",
        delimiter = NULL,
        versions = FALSE)

head(entries, 3)

returns:

                                                                                                                                                                  name
1                     L2/tiles/38/U/PF/S2A_MSIL2A_20170915T081001_N0500_R078_T38UPF_20231014T055905.SAFE/DATASTRIP/DS_S2RP_20231014T055905_S20170915T081416/MTD_DS.xml
2 L2/tiles/38/U/PF/S2A_MSIL2A_20170915T081001_N0500_R078_T38UPF_20231014T055905.SAFE/DATASTRIP/DS_S2RP_20231014T055905_S20170915T081416/QI_DATA/FORMAT_CORRECTNESS.xml
3    L2/tiles/38/U/PF/S2A_MSIL2A_20170915T081001_N0500_R078_T38UPF_20231014T055905.SAFE/DATASTRIP/DS_S2RP_20231014T055905_S20170915T081416/QI_DATA/GENERAL_QUALITY.xml
    size                     bucket contentType         timeCreated             updated storageClass
1  23 Mb gcp-public-data-sentinel-2    text/xml 2025-11-15 19:49:45 2025-11-15 19:49:45     STANDARD
2 3.9 Kb gcp-public-data-sentinel-2    text/xml 2025-11-15 19:49:45 2025-11-15 19:49:45     STANDARD
3 5.7 Kb gcp-public-data-sentinel-2    text/xml 2025-11-15 19:49:45 2025-11-15 19:49:45     STANDARD
My sessionInfo()

R version 4.5.3 (2026-03-11)
Platform: x86_64-pc-linux-gnu
Running under: Debian GNU/Linux 12 (bookworm)

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.5.so; LAPACK version 3.8.0

locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 LC_PAPER=C.UTF-8
[8] LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

time zone: Europe/Moscow
tzcode source: system (glibc)

attached base packages:
[1] tools stats graphics grDevices utils datasets methods base

other attached packages:
[1] arrow_23.0.1.1 clue_0.3-67 ranger_0.18.0 rstac_1.0.1 xml2_1.5.2 tibble_3.3.1
[7] terra_1.9-1 stringr_1.6.0 stringi_1.8.7 sf_1.1-0 s2_1.1.9 RSQLite_2.4.6
[13] rmapshaper_0.6.0 purrr_1.2.1 progressr_0.18.0 openxlsx_4.2.8.1 openssl_2.3.5 magrittr_2.0.4
[19] lwgeom_0.2-15 lubridate_1.9.5 logging_0.10-108 jsonlite_2.0.0 httr2_1.2.2 googleCloudStorageR_0.7.0
[25] ggplot2_4.0.2 furrr_0.3.1 future_1.69.0 exactextractr_0.10.1 duckdb_1.4.4 dplyr_1.2.0
[31] DBI_1.3.0 cowplot_1.2.0 aws.s3_0.3.22

loaded via a namespace (and not attached):
[1] tidyselect_1.2.1 farver_2.1.2 blob_1.3.0 S7_0.2.1 fastmap_1.2.0 digest_0.6.39 timechange_0.4.0 lifecycle_1.0.5
[9] cluster_2.1.8.2 googleAuthR_2.0.2.1 compiler_4.5.3 rlang_1.1.7 utf8_1.2.6 yaml_2.3.12 askpass_1.2.1 bit_4.6.0
[17] sp_2.2-1 classInt_0.4-11 curl_7.0.0 aws.signature_0.6.0 RColorBrewer_1.1-3 KernSmooth_2.23-26 withr_3.0.2 grid_4.5.3
[25] e1071_1.7-17 globals_0.19.0 scales_1.4.0 cli_3.6.5 crayon_1.5.3 generics_0.1.4 otel_0.2.0 rstudioapi_0.18.0
[33] httr_1.4.8 cachem_1.1.0 proxy_0.4-29 assertthat_0.2.1 parallel_4.5.3 base64enc_0.1-6 vctrs_0.7.1 V8_8.0.1
[41] Matrix_1.7-4 bit64_4.6.0-1 listenv_0.10.0 jpeg_0.1-11 units_1.0-0 glue_1.8.0 parallelly_1.46.1 codetools_0.2-20
[49] gtable_0.3.6 raster_3.6-32 pillar_1.11.1 rappdirs_0.3.4 R6_2.6.1 wk_0.9.5 lattice_0.22-9 png_0.1-8
[57] memoise_2.0.1 gargle_1.6.1 class_7.3-23 Rcpp_1.1.1 zip_2.3.3 fs_1.6.7 pkgconfig_2.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions