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

listObjects delimiter #65

Open
mathieuedet opened this issue Apr 2, 2020 · 1 comment
Open

listObjects delimiter #65

mathieuedet opened this issue Apr 2, 2020 · 1 comment

Comments

@mathieuedet
Copy link

mathieuedet commented Apr 2, 2020

Hi,

I discovered this library and it's really nice but I encountering a problem with listObjects and listObjectsV2 methods.

I don't have same responses that aws sdk. I just want to list all directory and files at a specific path. So I specify delimiter : "/" and Prefix with my path.

The problem is that response contains all subdirectories and files including in these directories.

Official AWS SDK returns only directories and files to specific prefix

|--- root_folder/
______| file.txt
______|--- Folder1/
__________|--- Subfolder1
_______________|---File1.txt
_______________|---File12.txt
______| Folder2/
__________| File2.txt

Options :

  • Bucket : "my_bucket"
  • Prefix : "root_folder"
  • Delimiter: "/"

Results should contains array of CommonPrefixes with "Prefix" (Folder1, Folder2) and Key "file.txt". But it returns "Subfolder1", "File1", "File12", "File2" too.

@sr258
Copy link

sr258 commented May 6, 2020

There seems to be another issue with the delimiter, too: The NextContinuationToken is not returned, if it is not set. Howver, I want the token, but not set the Delimiter.

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

2 participants