add typst export
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
package ignore
|
||||
|
||||
import "strings"
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
type Filesystem struct{}
|
||||
|
||||
func (f Filesystem) Ignore(name string) bool {
|
||||
return strings.Contains(name, "/.") || strings.HasPrefix(name, ".")
|
||||
parts := strings.Split(name, "/")
|
||||
return strings.HasPrefix(parts[len(parts)-1], ".")
|
||||
}
|
||||
|
Reference in New Issue
Block a user