Skip to content

fix: add trailing slash to GCS List prefix to prevent collisions#22

Open
hirokawai wants to merge 1 commit intolanggenius:mainfrom
hirokawai:fix/gcs-list-prefix-slash
Open

fix: add trailing slash to GCS List prefix to prevent collisions#22
hirokawai wants to merge 1 commit intolanggenius:mainfrom
hirokawai:fix/gcs-list-prefix-slash

Conversation

@hirokawai
Copy link

Align GoogleCloudStorage.List() with S3 implementation by appending a trailing slash to the prefix parameter. Without this, List("plugin") matches both "plugin/" and "plugin_packages/", producing invalid identifiers like "_packages/..." after TrimPrefix.

Fixes: #21

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

Successfully merging this pull request may close these issues.

GCS List method doesn't add slash suffix to prefix

1 participant