mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Handle error in newImageBox WalkDir (#2894)
This commit is contained in:
parent
32911367b0
commit
2368269e63
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ func newImageBox(box fs.FS) (*imageBox, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
err := fs.WalkDir(box, ".", func(path string, d fs.DirEntry, err error) error {
|
err := fs.WalkDir(box, ".", func(path string, d fs.DirEntry, err error) error {
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if d.IsDir() {
|
if d.IsDir() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue