handle sync delete file error #199

This commit is contained in:
xiaoyaofenfen 2022-12-01 11:39:37 +08:00
parent a455af2084
commit 1c454060c1

View File

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