增加 监听文件夹
This commit is contained in:
@@ -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() {
|
||||||
|
@@ -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"`
|
||||||
|
Reference in New Issue
Block a user