10 lines
178 B
Go
10 lines
178 B
Go
package ignore
|
|
|
|
import "strings"
|
|
|
|
type Filesystem struct{}
|
|
|
|
func (f Filesystem) Ignore(name string) bool {
|
|
return strings.Contains(name, "/.") || strings.HasPrefix(name, ".")
|
|
}
|