Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Watcher ¶
type Watcher struct { // Path is the path you want to watch Path string `yaml:"path"` // Destination is the path you want files to be relocated Destination string `yaml:"destination"` // Ext is the file extention you want to watch for Ext string `yaml:"ext"` // Operation is the event operation you want to watch for // CREATE, MODIFY, REMOVE, CHMOD, WRITE etc. Operation string `yaml:"operation"` // Pattern is the regex pattern to match against events Pattern string `yaml:"pattern"` }
Watcher is a struct that contains a path, destination, and file extention and event operation. in yaml format
Click to show internal directories.
Click to hide internal directories.