Ignore "hidden" files when importing a folder

This commit is contained in:
Deluan
2020-08-21 11:47:32 -04:00
parent 6c8535c54a
commit a45c08f217
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -379,6 +379,9 @@ func loadAllAudioFiles(dirPath string) (map[string]os.FileInfo, error) {
if f.IsDir() {
continue
}
if strings.HasPrefix(f.Name(), ".") {
continue
}
filePath := filepath.Join(dirPath, f.Name())
if !utils.IsAudioFile(filePath) {
continue