mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Allow trailing slashes for "wuffs gen"
This commit is contained in:
1 parent
5e9cca7e82
commit
72bf2e16a1
1 file changed
+4
@@ -96,6 +96,10 @@ type genHelper struct {
|
||||
}
|
||||
|
||||
func (h *genHelper) gen(dirname string, recursive bool) error {
|
||||
for len(dirname) > 0 && dirname[len(dirname)-1] == '/' {
|
||||
dirname = dirname[:len(dirname)-1]
|
||||
}
|
||||
|
||||
if h.seen == nil {
|
||||
h.seen = map[string]struct{}{}
|
||||
} else if _, ok := h.seen[dirname]; ok {
|
||||
|
||||
Reference in new issue
Block a user