skip hidden files
This commit is contained in:
@@ -573,6 +573,9 @@ func listDir(dname string) ([]string, error) {
|
|||||||
if entries[i].IsDir() {
|
if entries[i].IsDir() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(path.Base(entries[i].Name()), ".") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
paths = append(paths, path.Join(dname, entries[i].Name()))
|
paths = append(paths, path.Join(dname, entries[i].Name()))
|
||||||
}
|
}
|
||||||
sort.Slice(paths, func(i, j int) bool {
|
sort.Slice(paths, func(i, j int) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user