|
|
@@ -6,6 +6,7 @@ import (
|
|
|
"github.com/fsnotify/fsnotify"
|
|
|
)
|
|
|
|
|
|
+//start filesytem watcher
|
|
|
func (engine *Engine) StartFSWatcher() error {
|
|
|
var err error
|
|
|
engine.watcher, err = fsnotify.NewWatcher()
|
|
|
@@ -58,6 +59,7 @@ func (engine *Engine) StartFSWatcher() error {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+//stop filesytem watcher
|
|
|
func (engine *Engine) StopFSWatcher() error {
|
|
|
return engine.watcher.Close()
|
|
|
}
|