From 04048e268caf4c0d1ef16fe397179be117326231 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 15 Jul 2025 15:33:05 -0300 Subject: [PATCH] fix: do not ignore all dot files (#197) we should simply respect the gitignore, which is already there. --- internal/fsext/ls.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/fsext/ls.go b/internal/fsext/ls.go index 9f93baedb0e6487e39faef9de7c6a00f22547b1a..a9ff2a6645d6531fc0037b1fe1a87563abdc3a85 100644 --- a/internal/fsext/ls.go +++ b/internal/fsext/ls.go @@ -3,7 +3,6 @@ package fsext import ( "os" "path/filepath" - "strings" "github.com/charlievieth/fastwalk" ignore "github.com/sabhiram/go-gitignore" @@ -110,10 +109,6 @@ func (dl *DirectoryLister) shouldIgnore(path string, ignorePatterns []string) bo base := filepath.Base(path) - if base != "." && strings.HasPrefix(base, ".") { - return true - } - for _, pattern := range ignorePatterns { matched, err := filepath.Match(pattern, base) if err == nil && matched {