Ali-Javanmardi opened a new issue, #5810:
URL: https://github.com/apache/arrow-rs/issues/5810
**Which part is this question about**
<!--
Is it code base, library api, documentation or some other part?
-->
My question is about ObjectStore api.
**Describe your question**
<!--
A clear and concise description of what the question is.
-->
I'm trying to list content of a store. I'm trying to use exact copy of
documentation about it:
```
// create an ObjectStore
let object_store: Arc<dyn ObjectStore> = get_object_store();
// Recursively list all files below the 'data' path.
// 1. On AWS S3 this would be the 'data/' prefix
// 2. On a local filesystem, this would be the 'data' directory
let prefix = Path::from("data");
// Get an `async` stream of Metadata objects:
let mut list_stream = object_store.list(Some(&prefix));
// Print a line about each object
while let Some(meta) = list_stream.next().await.transpose().unwrap() {
println!("Name: {}, size: {}", meta.location, meta.size);
}
```
but the rust-analyzer and rustc compiler both claim there is no next()
function in list_stream come from object_store.list() function.
**Additional context**
<!--
Add any other context about the problem here.
-->
I'm using latest version of ObjectStore at the moment "0.10.1".
I tried to test version "0.9" but I received other errors due to breaking
changes in WriteMultipart struct.
So I don't want to refactor my code to comply older version.
--
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]