增加 监听文件夹

This commit is contained in:
dengsgo
2019-04-02 18:37:46 +08:00
parent 5f43051ae8
commit bee37e29e6
2 changed files with 2 additions and 0 deletions

View File

@@ -137,6 +137,7 @@ func addWatcher() {
} }
log.Println("total monitored dirs: " + strconv.Itoa(len(dirsMap))) log.Println("total monitored dirs: " + strconv.Itoa(len(dirsMap)))
log.Println("fileboy is ready.") log.Println("fileboy is ready.")
cfg.Monitor.DirsMap = dirsMap
} }
func initWatcher() { func initWatcher() {

View File

@@ -12,6 +12,7 @@ type FileGirl struct {
TypesMap map[string]bool `yaml:"-"` TypesMap map[string]bool `yaml:"-"`
IncludeDirsMap map[string]bool `yaml:"-"` IncludeDirsMap map[string]bool `yaml:"-"`
ExceptDirsMap map[string]bool `yaml:"-"` ExceptDirsMap map[string]bool `yaml:"-"`
DirsMap map[string]bool `yaml:"-"`
} }
Command struct { Command struct {
Exec []string `yaml:"exec"` Exec []string `yaml:"exec"`