修复 includeDirs不包含项目目录时仍会监听该目录的问题

This commit is contained in:
dengsgo 2019-12-04 11:02:22 +08:00
parent 3964324f43
commit a0af500678

View File

@ -87,9 +87,7 @@ func eventDispatcher(event fsnotify.Event) {
func addWatcher() {
log.Println("collecting directory information...")
dirsMap := map[string]bool{
projectFolder: true,
}
dirsMap := map[string]bool{}
for _, dir := range cfg.Monitor.IncludeDirs {
darr := dirParse2Array(dir)
if len(darr) < 1 || len(darr) > 2 {