fix ignore missing

This commit is contained in:
Sebastian Frank 2021-09-07 18:24:30 +02:00
parent 9293458ef1
commit e15541d3fa
Signed by: apairon
GPG Key ID: A0E05A8199CE3F57
3 changed files with 6 additions and 1 deletions

1
go.mod
View File

@ -3,6 +3,7 @@ module gitbase.de/apairon/fstrigger
go 1.16
require (
github.com/davecgh/go-spew v1.1.1
github.com/domodwyer/mailyak/v3 v3.3.3
github.com/flosch/pongo2/v4 v4.0.2
github.com/rjeczalik/notify v0.9.2

2
go.sum
View File

@ -1,3 +1,5 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/domodwyer/mailyak/v3 v3.3.3 h1:E9cjqDUiwY1QSE5G2CbWHM7EJV5FybKPHnGovc2iaA8=
github.com/domodwyer/mailyak/v3 v3.3.3/go.mod h1:lOm/u9CyCVWHeaAmHIdF4RiKVxKUT/H5XX10lIKAL6c=
github.com/flosch/pongo2/v4 v4.0.2 h1:gv+5Pe3vaSVmiJvh/BZa82b7/00YUGm0PIyVVLop0Hw=

View File

@ -13,6 +13,7 @@ import (
"sync"
"time"
"github.com/davecgh/go-spew/spew"
"github.com/domodwyer/mailyak/v3"
"github.com/flosch/pongo2/v4"
"github.com/rjeczalik/notify"
@ -58,7 +59,7 @@ type DirectoryConfig struct {
Events []string
PollingInterval *int64 `yaml:"pollingInterval"`
Regex *string
IgnoreMissing bool
IgnoreMissing bool `yaml:"ignoreMissing"`
_regex *regexp.Regexp
_regexMatches []string
Actions []ActionConfig
@ -490,6 +491,7 @@ func main() {
if err != nil {
log.Fatalf("error %v", err)
}
spew.Dump(conf)
for _, directory := range conf.Directories {
directory := directory