ignore files

This commit is contained in:
u80864958
2025-04-02 16:23:15 +02:00
parent abe9c7d1fb
commit 15f7db8d3e
10 changed files with 299 additions and 130 deletions

9
pkg/ignore/filesystem.go Normal file
View File

@ -0,0 +1,9 @@
package ignore
import "strings"
type Filesystem struct{}
func (f Filesystem) Ignore(name string) bool {
return strings.Contains(name, "/.") || strings.HasPrefix(name, ".")
}