fsxutil

package
v0.19.9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitIgnoreFS

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

NewGitIgnoreFS creates a new FS that filters the given FS using gitignore rules

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