From bdbfc62608ab01675671c5c0354f12e4d2aedd1b Mon Sep 17 00:00:00 2001 From: luopeizhen <49596696@qq.com> Date: Mon, 16 Apr 2018 14:52:53 +0800 Subject: [PATCH] support watch sub directories --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 2da9b60..f9f26ef 100644 --- a/main.go +++ b/main.go @@ -263,7 +263,7 @@ type scanCallback func(path string) func scanChanges(watchPath string, excludeDirs []string, allFiles bool, cb scanCallback) { for { filepath.Walk(watchPath, func(path string, info os.FileInfo, err error) error { - if path == ".git" && info.IsDir() { + if path == ".git" { return filepath.SkipDir } for _, x := range excludeDirs {