skip hidden files

This commit is contained in:
Bel LaPointe
2023-08-16 06:54:21 -06:00
parent 6bb6c847aa
commit 236355b69d

View File

@@ -573,6 +573,9 @@ func listDir(dname string) ([]string, error) {
if entries[i].IsDir() {
continue
}
if strings.HasPrefix(path.Base(entries[i].Name()), ".") {
continue
}
paths = append(paths, path.Join(dname, entries[i].Name()))
}
sort.Slice(paths, func(i, j int) bool {