diff --git a/backend/util.go b/backend/util.go index 0da539e..fa72b3c 100644 --- a/backend/util.go +++ b/backend/util.go @@ -10,19 +10,18 @@ import ( func WalkDirExt(root string, exts []string) ([]string, error) { var files []string err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error { - if d.IsDir() { - return nil - } - - for _, s := range exts { - if strings.HasSuffix(path, "."+s) { - files = append(files, path) - return nil + if !d.IsDir() { + for _, s := range exts { + if strings.HasSuffix(path, "."+s) { + files = append(files, path) + return nil + } } } return nil }) + return files, err } diff --git a/frontend/src/views/GameSelection.vue b/frontend/src/views/GameSelection.vue index a7134b9..49081c3 100644 --- a/frontend/src/views/GameSelection.vue +++ b/frontend/src/views/GameSelection.vue @@ -369,7 +369,7 @@ onMounted(async () => {