tustvold commented on issue #327:
URL: 
https://github.com/apache/arrow-rs-object-store/issues/327#issuecomment-2790115314

   This crate aims to behave consistently across a number of different stores, 
it therefore does not allow trailing `/` as they will behave differently 
between systems, as you allude to. Putting aside the issues caused by objects 
with trailing `/` (#284), even listing doesn't work consistently. For example, 
aside from LocalFilesystem, S3 Express prohibits listing with prefixes without 
a trailing `/`, and Azure's Gen2 buckets error where the name of a file appears 
in the middle of the prefix path.
   
   As documented on 
[ObjectStore::list](https://docs.rs/object_store/latest/object_store/trait.ObjectStore.html#tymethod.list)
   
   > List objects with the given prefix and an implementation specific 
delimiter. Returns common prefixes (directories) in addition to object metadata.
   > 
   > Prefixes are evaluated on a path segment basis, i.e. foo/bar is a prefix 
of foo/bar/x but not of foo/bar_baz/x. List is not recursive, i.e. 
foo/bar/more/x will not be included.
   
   This provides consistency across the various different systems.
   
   Perhaps 
[list_with_offset](https://docs.rs/object_store/latest/object_store/trait.ObjectStore.html#method.list_with_offset
 might provide what you are looking for? Although it should be noted this will 
fall back to client-side filtering where the underlying store doesn't support 
it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to