version2 (#1)
Co-authored-by: u80864958 <niklas.breitenstein@bit.admin.ch> Reviewed-on: #1
This commit is contained in:
9
pkg/ignore/filesystem.go
Normal file
9
pkg/ignore/filesystem.go
Normal 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, ".")
|
||||
}
|
Reference in New Issue
Block a user