-
Notifications
You must be signed in to change notification settings - Fork 5
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
Listing objects of S3
bucket
#101
Comments
You can use |
Thanks for your quick reply! So, the only way to check if an object is a directory is to use the When using the |
|
You might want to make an issue or ask in the discord of the arrow-rs project, which also manages |
I asked on discord here: https://discord.com/channels/885562378132000778/885562378132000781/1310704559727054918 |
Even if
S3
buckets have a flat structure, they still support the folder concept to make organization easier, but when listing the objects within anS3
bucket using theobstore
package, the returned list does not clearly differentiate between files and directories.For example, the following code:
will return the following:
As directories within
S3
buckets are allowed to include a.
in their names, it makes it impossible to differentiate between directories and files (a folder inS3
will always be an object of size 0 as it only mimics a directory, but so will an empty file).Typically, directories have a trailing slash to differentiate them from other objects (note the red box marked important in their docs here), but this seems to have been removed in the
obstore
listing.Is there any other way that directories are supposed to be differentiated? Or is this something that can be fixed?
Thank you!
The text was updated successfully, but these errors were encountered: