Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Subfolders ¶
Subfolders returns a slice of subfolders (recursive), including the folder provided
Types ¶
type RecursiveWatcher ¶
type RecursiveWatcher struct { *fsnotify.Watcher Files chan []string // contains filtered or unexported fields }
RecursiveWatcher is a fsnotify watcher with recursice
func NewRecursiveWatcher ¶
func NewRecursiveWatcher(path string, interval time.Duration) (*RecursiveWatcher, error)
NewRecursiveWatcher return a watcher with recursive
func (*RecursiveWatcher) AddFolder ¶
func (watcher *RecursiveWatcher) AddFolder(folder string)
AddFolder add the folder to watcher
Click to show internal directories.
Click to hide internal directories.