Xuanwo commented on code in PR #5617:
URL: https://github.com/apache/opendal/pull/5617#discussion_r1978831312


##########
core/src/services/hdfs_native/backend.rs:
##########
@@ -238,10 +249,16 @@ impl Access for HdfsNativeBackend {
         ))
     }
 
-    async fn list(&self, path: &str, _args: OpList) -> Result<(RpList, 
Self::Lister)> {
+    async fn list(&self, path: &str, args: OpList) -> Result<(RpList, 
Self::Lister)> {
         let p = build_rooted_abs_path(&self.root, path);
-        let l = HdfsNativeLister::new(p, self.client.clone());
-        Ok((RpList::default(), Some(l)))
+        info!("backend list started. path {} p {}", &path, &p);
+        let iter = self.client.list_status_iter(&p, args.recursive());
+        let stream = iter.into_stream();

Review Comment:
   We can store `ListStatusIterator` directly in `Lister` and don't need to 
play with stream.



-- 
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