file

package
v1.33.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHiddenFile

func IsHiddenFile(filename string) (bool, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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