Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCS bucket prefix not respected #755

Open
lawschlosser opened this issue May 9, 2023 · 0 comments
Open

GCS bucket prefix not respected #755

lawschlosser opened this issue May 9, 2023 · 0 comments

Comments

@lawschlosser
Copy link

It doesn't appear that the object path prefix is being respected when mounting a GCS bucket.
Below is an example that uses a public GCS bucket (no credentials required).

# list contents of public bucket
gsutil ls gs://gcp-public-data-landsat/
#    gs://gcp-public-data-landsat/LC08/
#    gs://gcp-public-data-landsat/LE07/
#    gs://gcp-public-data-landsat/LM01/
#    gs://gcp-public-data-landsat/LM02/
#    gs://gcp-public-data-landsat/LM03/
#    gs://gcp-public-data-landsat/LM04/
#    gs://gcp-public-data-landsat/LM05/
#    gs://gcp-public-data-landsat/LO08/
#    gs://gcp-public-data-landsat/LT04/
#    gs://gcp-public-data-landsat/LT05/
#    gs://gcp-public-data-landsat/LT08/
# create a local directory to mount the `/LC08/` subdirectory/prefix to
mkdir -p /tmp/LC08/

# mount the bucket using the `/LC08/` prefix
/src/goofys   gs://gcp-public-data-landsat/LC08/ /tmp/LC08/

The contents of /tmp/LC08/ should reflect that of gs://gcp-public-data-landsat/LC08/, e.g.

ls /tmp/LC08/
#    01  01_$folder$

... but instead, it reflects that of gs://gcp-public-data-landsat/, e.g.

ls /tmp/LC08/
#    LC08  LE07  LM01  LM02  LM03  LM04  LM05  LO08  LT04  LT05 LT08

goofys version

/src/goofys -v
#   goofys version 0.24.0-use `make build' to fill version hash correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant