fix : bucket can not be delete if not empty . rustfs/s3-rustfs#281

This commit is contained in:
cxymds
2025-04-02 09:20:35 +08:00
parent 5d3a1c7165
commit 6935e4c3f7
+2 -1
View File
@@ -157,8 +157,9 @@ const deleteItem = async (row: RowData) => {
const objectApi = useObject({ bucket: row.Name});
const files = await objectApi.listObject(row.Name);
console.log("🚀 ~ deleteItem ~ files:", files)
if(files.KeyCount){
if(files.KeyCount || files.CommonPrefixes?.length){
message.error("当前桶不为空,请先删除桶内容")
return
}