修复 includeDirs不包含项目目录时仍会监听该目录的问题
This commit is contained in:
parent
3964324f43
commit
a0af500678
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user