Xuanwo commented on issue #5507:
URL: https://github.com/apache/opendal/issues/5507#issuecomment-2574965669

   > If the deleted file is not the latest, current file is should in 
output.version.
   
   @meteorgan's case mixed up two files, the most simple one should be:
   
   ```rust
   pub async fn test_list_files_with_deleted(op: Operator) -> Result<()> {
       if !op.info().full_capability().list_with_deleted {
           return Ok(());
       }
   
       let parent = TEST_FIXTURE.new_dir_path();
       let file_name = TEST_FIXTURE.new_file_path();
       let file_path = format!("{}{}", parent, file_name);
       op.write(file_path.as_str(), "1").await?;
   
       let mut ds = op.list_with(&file_path).deleted(true).await?;
       assert_eq!(ds.len(), 1);
   }
   ```
   
   This means `list_with().deleted(true)` should always include the latest 
version of the file.
   
   > And should list_with().deleted(true) include multi delete marker for same 
file?
   
   Yes, we should list all of them.
   


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