mirror of https://github.com/stashapp/stash.git
Handle error in newImageBox WalkDir (#2894)
This commit is contained in:
parent
32911367b0
commit
2368269e63
|
@ -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 New Issue