mirror of
https://github.com/stashapp/stash.git
synced 2026-03-26 23:21:52 +01:00
Treat bad network path error as non-existing folder during folder rename check (#6680)
* treat any error as missing folder
This commit is contained in:
parent
b4fab0ac48
commit
e851d8d3bf
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue