fs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkSourceFiles

func WalkSourceFiles(workspaceRoot string, supportedExts []string, callback func(filePath string) error) error

Types

type FileChangeHandler

type FileChangeHandler func(ctx context.Context, filePaths []string)

type FileFilter

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

func NewFileFilter

func NewFileFilter(workspaceRoot string, supportedExts []string) *FileFilter

func (*FileFilter) ShouldIgnore

func (f *FileFilter) ShouldIgnore(path string) bool

type Watcher

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

func NewWatcher

func NewWatcher(ctx context.Context, workspaceRoot string, supportedExts []string, handler FileChangeHandler) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close() error

func (*Watcher) FlushPending

func (w *Watcher) FlushPending()

func (*Watcher) PendingCount added in v0.2.0

func (w *Watcher) PendingCount() int

Jump to

Keyboard shortcuts

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