Merge pull request #124 from vbatts/comment_update

Comment update
This commit is contained in:
Vincent Batts 2017-02-16 07:51:21 -08:00 committed by GitHub
commit e359fa7d2d
2 changed files with 10 additions and 3 deletions

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
*~
.cli.test
.lint
.test
.vet
gomtree

View file

@ -25,9 +25,10 @@ var ExcludeNonDirectories = func(path string, info os.FileInfo) bool {
var defaultSetKeywords = []KeyVal{"type=file", "nlink=1", "flags=none", "mode=0664"}
// Walk from root directory and assemble the DirectoryHierarchy. excludes
// provided are used to skip paths. keywords are the set to collect from the
// walked paths. The recommended default list is DefaultKeywords.
// Walk from root directory and assemble the DirectoryHierarchy
// * `excludes` provided are used to skip paths
// * `keywords` are the set to collect from the walked paths. The recommended default list is DefaultKeywords.
// * `fsEval` is the interface to use in evaluating files. If `nil`, then DefaultFsEval is used.
func Walk(root string, excludes []ExcludeFunc, keywords []Keyword, fsEval FsEval) (*DirectoryHierarchy, error) {
if fsEval == nil {
fsEval = DefaultFsEval{}