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

"//" in path results in "NoSuchKey" #426

Open
1 of 3 tasks
nick-youngblut opened this issue Jan 19, 2023 · 0 comments
Open
1 of 3 tasks

"//" in path results in "NoSuchKey" #426

nick-youngblut opened this issue Jan 19, 2023 · 0 comments

Comments

@nick-youngblut
Copy link

nick-youngblut commented Jan 19, 2023

Before filing an issue, please make sure you are using the latest development version which you can install using install.packages("aws.s3",repo="https://rforge.net") (see README) since the issue may have been fixed already. Also search existing issues first to avoid duplicates.

Please specify whether your issue is about:

  • a possible bug
  • a question about package functionality
  • a suggested code or documentation change, improvement to the code, or feature request

At least for aws.s3::s3read_using(), if the object path includes >1 consecutive forward slash (e.g., path/to/my//file.txt), then the file path is considered invalid, and the user get the return: NoSuchKey.

I know that this is a limitation of AWS, but it would be great if s3read_using included code to filter out repeated forward slashes (e.g,. object <- gsub('/+', '/', object)), especially given how "simple" file.path() is, in regards to dealing with repeated forward slashes.

I'm using aws.s3 0.3.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

No branches or pull requests

1 participant