watcher

package
v0.2.793 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkFiles

func WalkFiles(ctx context.Context, path string, out chan fsnotify.Event) (err error)

WalkFiles walks the file tree rooted at path, sending a Create event for each file it encounters.

Types

type RecursiveWatcher

type RecursiveWatcher struct {
	Events chan fsnotify.Event
	Errors chan error
	// contains filtered or unexported fields
}

func Recursive

func Recursive(
	ctx context.Context,
	path string,
	out chan fsnotify.Event,
	errors chan error,
) (w *RecursiveWatcher, err error)

func (*RecursiveWatcher) Add

func (w *RecursiveWatcher) Add(dir string) error

func (*RecursiveWatcher) Close

func (w *RecursiveWatcher) Close() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL