fix:#351 delete object err

This commit is contained in:
weisd
2025-04-24 13:22:34 +08:00
parent 3985330da3
commit e251ffe85d
2 changed files with 5 additions and 8 deletions

View File

@@ -629,7 +629,11 @@ impl LocalDisk {
let _ = fm.data.remove(vec![vid, dir]);
let dir_path = self.get_object_path(volume, format!("{}/{}", path, dir).as_str())?;
self.move_to_trash(&dir_path, true, false).await?;
if let Err(err) = self.move_to_trash(&dir_path, true, false).await {
if !(is_err_file_not_found(&err) || is_err_os_not_exist(&err)) {
return Err(err);
}
};
}
}

View File

@@ -15,13 +15,6 @@ REMOTE_PATH="~"
# 格式服务器IP 用户名 目标路径
SERVER_LIST=(
"root@121.89.80.13"
"root@121.89.80.198"
"root@8.130.78.237"
"root@8.130.189.236"
"root@121.89.80.230"
"root@121.89.80.45"
"root@8.130.191.95"
"root@121.89.80.91"
)
# 遍历服务器列表