WenyXu opened a new issue, #3150:
URL: https://github.com/apache/incubator-opendal/issues/3150

   ### opendal version 
   
https://github.com/apache/incubator-opendal/tree/7d5524f35f29f7eda8131e8b0873590b7cbe34ab
   ### minimal reproduction
   1. Fs backend with "/" root
   ```rust
   let mut builder = Fs::default();
       let _ = builder.root(root);
       let object_store = Builder::new(builder)
           .unwrap()
           .finish();
   ```
   
   2. List a path
   ```rust
    let streamer = self
                       .object_store
                       .lister_with("C:/to/path/file") // on Linux: 
`/to/path/file`
                       .await
                       .unwrap();
    streamer.try_collect::<Vec<_>>()
                       .await
                       .unwrap();
   ```
   
   The above code works well in 0.36 (both on Windows and Linux, macOS), But 
after we upgrade the version to 0.39, it will fail on Windows.
   
   ### log output and stack trace
   ```
   cannot fail because the prefix is iterated: StripPrefixError(())
   ```
   
   
https://github.com/apache/incubator-opendal/blob/9ea8b93d3964af86dee24b9b941efdd67038e6a8/core/src/services/fs/pager.rs#L58-L64
   
   


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