From e851d8d3bf270fe7344f183d8ca389673660e797 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 16 Mar 2026 17:32:43 +1100 Subject: [PATCH] Treat bad network path error as non-existing folder during folder rename check (#6680) * treat any error as missing folder --- pkg/file/folder_rename_detect.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/file/folder_rename_detect.go b/pkg/file/folder_rename_detect.go index cfae7e4fb..73a12e3e4 100644 --- a/pkg/file/folder_rename_detect.go +++ b/pkg/file/folder_rename_detect.go @@ -2,7 +2,6 @@ package file import ( "context" - "errors" "fmt" "io/fs" @@ -161,9 +160,7 @@ func (s *Scanner) detectFolderMove(ctx context.Context, file ScannedFile) (*mode continue } - if !errors.Is(err, fs.ErrNotExist) { - return fmt.Errorf("checking for parent folder %q: %w", pf.Path, err) - } + // treat any error as missing folder // parent folder is missing, possible candidate // count the total number of files in the existing folder