From 1c454060c136a9ea601514c89ed88c9382eb4736 Mon Sep 17 00:00:00 2001 From: xiaoyaofenfen <1254525673@qq.com> Date: Thu, 1 Dec 2022 11:39:37 +0800 Subject: [PATCH] handle sync delete file error #199 --- internal/syncdrive/file_action_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/syncdrive/file_action_task.go b/internal/syncdrive/file_action_task.go index bc1be3c..1672e0f 100644 --- a/internal/syncdrive/file_action_task.go +++ b/internal/syncdrive/file_action_task.go @@ -211,7 +211,7 @@ func (f *FileActionTask) downloadFile(ctx context.Context) error { }) time.Sleep(time.Duration(200) * time.Millisecond) if apierr != nil { - if apierr.Code == apierror.ApiCodeFileNotFoundCode { + if apierr.Code == apierror.ApiCodeFileNotFoundCode || apierr.Code == apierror.ApiCodeForbiddenFileInTheRecycleBin { f.syncItem.Status = SyncFileStatusNotExisted f.syncItem.StatusUpdateTime = utils.NowTimeStr() f.syncFileDb.Update(f.syncItem)