fsxutil

package
v0.19.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitIgnoreMarkedFS added in v0.19.11

func NewGitIgnoreMarkedFS(fs fsutil.FS, matcher *GitignoreMatcher) (fsutil.FS, error)

NewGitIgnoreMarkedFS creates a new FS that marks gitignored paths in Stat.GitIgnored. The returned FS still walks the full tree (to preserve negation semantics), but it leaves filtering decisions to the consumer.

Types

type GitignoreMatcher

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

func NewGitIgnoreMatcher

func NewGitIgnoreMatcher(fs fsutil.FS) *GitignoreMatcher

NewGitIgnoreMatcher creates a new GitignoreMatcher for the given FS

func (*GitignoreMatcher) Matches

func (gfs *GitignoreMatcher) Matches(path string, isDir bool) (out bool, _ error)

Matches checks if a path should be ignored based on gitignore rules

Jump to

Keyboard shortcuts

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