fs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoundedFsWatcher

type BoundedFsWatcher struct {
	// contains filtered or unexported fields
}

func NewBoundedFsWatcher

func NewBoundedFsWatcher(maxEvents int, filter func(event fsnotify.Event) (keep bool)) (inst *BoundedFsWatcher, err error)

func (*BoundedFsWatcher) AddDir

func (inst *BoundedFsWatcher) AddDir(path string) (err error)

func (*BoundedFsWatcher) AddDirRecursive

func (inst *BoundedFsWatcher) AddDirRecursive(root fs.FS, ignoreErrors bool, predicate func(path string, d fs.DirEntry) (prefixForLog string, add bool)) (err error)

AddDirRecursive uses fs.WalkDir and therefore does not follow symlinks

func (*BoundedFsWatcher) Close

func (inst *BoundedFsWatcher) Close() (err error)

func (*BoundedFsWatcher) GetAndClearEvents

func (inst *BoundedFsWatcher) GetAndClearEvents(eventsIn []fsnotify.Event) (eventsOut []fsnotify.Event)

func (*BoundedFsWatcher) GetMaxEvents

func (inst *BoundedFsWatcher) GetMaxEvents() int

func (*BoundedFsWatcher) IsOpen

func (inst *BoundedFsWatcher) IsOpen() bool

func (*BoundedFsWatcher) LastError

func (inst *BoundedFsWatcher) LastError() (err error)

func (*BoundedFsWatcher) ResetWatches

func (inst *BoundedFsWatcher) ResetWatches() (err error)

Jump to

Keyboard shortcuts

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