method comments
This commit is contained in:
parent
bcd5b61918
commit
7bedd4c32a
|
@ -95,6 +95,7 @@ func (w *fsNotifyWatcher) Events() <-chan fsnotify.Event {
|
||||||
return w.Watcher.Events
|
return w.Watcher.Events
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Walk fsnotify
|
||||||
func (w *fsNotifyWatcher) Walk(path string, init bool) string {
|
func (w *fsNotifyWatcher) Walk(path string, init bool) string {
|
||||||
if err := w.Add(path); err != nil {
|
if err := w.Add(path); err != nil {
|
||||||
return ""
|
return ""
|
||||||
|
@ -157,6 +158,7 @@ func (w *filePoller) Add(name string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove poller
|
||||||
func (w *filePoller) remove(name string) error {
|
func (w *filePoller) remove(name string) error {
|
||||||
if w.closed {
|
if w.closed {
|
||||||
return errPollerClosed
|
return errPollerClosed
|
||||||
|
@ -184,6 +186,7 @@ func (w *filePoller) Events() <-chan fsnotify.Event {
|
||||||
return w.events
|
return w.events
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Walk poller
|
||||||
func (w *filePoller) Walk(path string, init bool) string {
|
func (w *filePoller) Walk(path string, init bool) string {
|
||||||
check := w.watches[path]
|
check := w.watches[path]
|
||||||
if err := w.Add(path); err != nil {
|
if err := w.Add(path); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue