mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
Ignore #snapshot folders when scanning. Fixes #3257
This commit is contained in:
parent
a1866c7ff3
commit
9ae2ec1a07
3 changed files with 13 additions and 40 deletions
|
@ -82,9 +82,13 @@ var _ = Describe("walk_dir_tree", func() {
|
|||
dirEntry := getDirEntry(baseDir, "...unhidden_folder")
|
||||
Expect(isDirIgnored(baseDir, dirEntry)).To(BeFalse())
|
||||
})
|
||||
It("returns false when folder name is $Recycle.Bin", func() {
|
||||
It("returns true when folder name is $Recycle.Bin", func() {
|
||||
dirEntry := getDirEntry(baseDir, "$Recycle.Bin")
|
||||
Expect(isDirIgnored(baseDir, dirEntry)).To(BeFalse())
|
||||
Expect(isDirIgnored(baseDir, dirEntry)).To(BeTrue())
|
||||
})
|
||||
It("returns true when folder name is #snapshot", func() {
|
||||
dirEntry := getDirEntry(baseDir, "#snapshot")
|
||||
Expect(isDirIgnored(baseDir, dirEntry)).To(BeTrue())
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue