Skip to content

Commit 76a9eaa

Browse files
committed
fix: ignore dot prefixed folders
1 parent 64c983d commit 76a9eaa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

services/fs.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,16 @@ func StartFileScan(directoryPath string) {
9090
}
9191

9292
func FindVideoFiles(dirPath string, videoFiles *[]string) error {
93-
9493
files, err := ioutil.ReadDir(dirPath)
9594
if err != nil {
9695
return err
9796
}
9897

9998
for _, file := range files {
99+
if strings.HasPrefix(file.Name(), ".") {
100+
continue
101+
}
102+
100103
filePath := filepath.Join(dirPath, file.Name())
101104

102105
if file.IsDir() {

0 commit comments

Comments
 (0)