Browse Source

fix: hide dotfile error on share

pull/1339/head
Ramires Viana 1 year ago
parent
commit
5f4a0317ab
  1. 2
      rules/rules.go

2
rules/rules.go

@ -22,7 +22,7 @@ type Rule struct {
// MatchHidden matches paths with a basename
// that begins with a dot.
func MatchHidden(path string) bool {
return strings.HasPrefix(filepath.Base(path), ".")
return path != "" && strings.HasPrefix(filepath.Base(path), ".")
}
// Matches matches a path against a rule.

Loading…
Cancel
Save