on main help sign in
fix: do not ignore all dot files (#197)

we should simply respect the gitignore, which is already there.

commit04048e268caf4c0d1ef16fe397179be117326231 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateTue 15 Jul 2025, 15:33 (1 year ago) parent833eede
1 file changed−5
internal/fsext/ls.go−5
internal/fsext/ls.go−5
@@ -3,7 +3,6 @@ package fsext
33import (
44 "os"
55 "path/filepath"
6− "strings"
76
87 "github.com/charlievieth/fastwalk"
98 ignore "github.com/sabhiram/go-gitignore"
@@ -110,10 +109,6 @@ func (dl *DirectoryLister) shouldIgnore(path string, ignorePatterns []string) bo
110109
111110 base := filepath.Base(path)
112111
113− if base != "." && strings.HasPrefix(base, ".") {
114− return true
115− }
116−
117112 for _, pattern := range ignorePatterns {
118113 matched, err := filepath.Match(pattern, base)
119114 if err == nil && matched {