1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-12-22 13:56:30 +00:00

Merge pull request #35 from stephen679/set_keyword_selector

[bug fix] walk: filter \set keyword correctly
This commit is contained in:
Vincent Batts 2016-07-21 13:51:47 -04:00 committed by GitHub
commit 20279bacf2

View file

@ -106,7 +106,7 @@ func Walk(root string, exlcudes []ExcludeFunc, keywords []string) (*DirectoryHie
Name: "/set",
Type: SpecialType,
Pos: len(creator.DH.Entries),
Keywords: append(defaultSetKeywords, klist...),
Keywords: keywordSelector(append(defaultSetKeywords, klist...), keywords),
}
creator.curSet = &e
creator.DH.Entries = append(creator.DH.Entries, e)