Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHiddenFile ¶
IsHiddenFile returns true if the file is hidden on non-windows. The filename must be non-empty.
Types ¶
type RecursiveWatcher ¶
type RecursiveWatcher struct {
// contains filtered or unexported fields
}
RecursiveWatcher wraps an fsnotify Watcher to recursively watch all files in a directory.
func NewRecursiveWatcher ¶
func NewRecursiveWatcher(buffer uint) (*RecursiveWatcher, error)
NewRecursiveWatcher returns a RecursiveWatcher which notifies when changes are made to files inside a recursive directory tree.
func (*RecursiveWatcher) Add ¶
func (rw *RecursiveWatcher) Add(path string) error
Add recursively adds a directory tree to the list of watched files.
func (*RecursiveWatcher) Close ¶
func (rw *RecursiveWatcher) Close() error
Close closes the RecursiveWatcher.
func (*RecursiveWatcher) Errors ¶
func (rw *RecursiveWatcher) Errors() <-chan error
Errors returns the errors channel.
func (*RecursiveWatcher) Events ¶
func (rw *RecursiveWatcher) Events() <-chan fsnotify.Event
Events returns the events channel.
Click to show internal directories.
Click to hide internal directories.