list object include deleted support (#882)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
weisd
2025-11-18 21:51:10 +08:00
committed by GitHub
parent 6da5766ea2
commit 55d44622ed
10 changed files with 31 additions and 5 deletions
+6
View File
@@ -2225,6 +2225,11 @@ impl S3 for FS {
let store = get_validated_store(&bucket).await?;
let incl_deleted = req
.headers
.get(rustfs_utils::http::headers::RUSTFS_INCLUDE_DELETED)
.is_some_and(|v| v.to_str().unwrap_or_default() == "true");
let object_infos = store
.list_objects_v2(
&bucket,
@@ -2234,6 +2239,7 @@ impl S3 for FS {
max_keys,
fetch_owner.unwrap_or_default(),
start_after,
incl_deleted,
)
.await
.map_err(ApiError::from)?;