add typst export

This commit is contained in:
u80864958
2025-05-07 11:00:32 +02:00
parent c0fe9a4a46
commit 454554f8e0
6 changed files with 151 additions and 49 deletions

View File

@ -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], ".")
}