matthambrecht opened a new issue, #7187:
URL: https://github.com/apache/opendal/issues/7187

   ### Describe the bug
   
   Currently if you use the fs service's lister and attempt to view the 
metadata it only returns type defaults so sizes are always 0 and access times 
are always undefined.
   
   ### Steps to Reproduce
   
   ```rust
   use opendal::{self, Operator};
   use futures_util::TryStreamExt;
   
   #[tokio::main]
   async fn main() {
       let operator = Operator::from_uri("fs:///tmp/test_dir").unwrap();
       let lister = operator.lister("/").await.unwrap();
       let entries = lister.try_collect::<Vec<_>>().await.unwrap(); 
   
      for entry in entries {
           let metadata = entry.metadata();
           println!("Metadata: {:#?}", metadata)
       }
   }
   ```
   
   ### Expected Behavior
   
   Should serve the file's size and time of last modification.
   
   ### Additional Context
   
   _No response_
   
   ### Are you willing to submit a PR to fix this bug?
   
   - [x] Yes, I would like to submit a PR.


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