Fix ignoring hidden folders when scanning

This commit is contained in:
Deluan
2020-10-22 13:59:54 -04:00
parent f9e0de31b8
commit 4514a54744
3 changed files with 8 additions and 0 deletions
+4
View File
@@ -38,5 +38,9 @@ var _ = Describe("load_tree", func() {
dir, _ := os.Stat(filepath.Join(baseDir, "ignored_folder"))
Expect(isDirIgnored(baseDir, dir)).To(BeTrue())
})
It("returns true when folder name starts with a `.`", func() {
dir, _ := os.Stat(filepath.Join(baseDir, ".hidden_folder"))
Expect(isDirIgnored(baseDir, dir)).To(BeTrue())
})
})
})