Watcher watch for directory changes and run commands
| 24 | |
| 25 | // Watcher watch for directory changes and run commands |
| 26 | type Watcher struct { |
| 27 | config *types.DirectoryConfig |
| 28 | watcher *fsnotify.Watcher |
| 29 | status string |
| 30 | errorLog string |
| 31 | } |
| 32 | |
| 33 | //NewWatcher creates new watcher |
| 34 | func NewWatcher(config types.DirectoryConfig) *Watcher { |
nothing calls this directly
no outgoing calls
no test coverage detected