增加 监听文件夹
This commit is contained in:
parent
5f43051ae8
commit
bee37e29e6
@ -137,6 +137,7 @@ func addWatcher() {
|
||||
}
|
||||
log.Println("total monitored dirs: " + strconv.Itoa(len(dirsMap)))
|
||||
log.Println("fileboy is ready.")
|
||||
cfg.Monitor.DirsMap = dirsMap
|
||||
}
|
||||
|
||||
func initWatcher() {
|
||||
|
@ -12,6 +12,7 @@ type FileGirl struct {
|
||||
TypesMap map[string]bool `yaml:"-"`
|
||||
IncludeDirsMap map[string]bool `yaml:"-"`
|
||||
ExceptDirsMap map[string]bool `yaml:"-"`
|
||||
DirsMap map[string]bool `yaml:"-"`
|
||||
}
|
||||
Command struct {
|
||||
Exec []string `yaml:"exec"`
|
||||
|
Loading…
Reference in New Issue
Block a user