fix: do not ignore all dot files (#197)

Carlos Alexandro Becker created

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

Change summary

internal/fsext/ls.go | 5 -----
1 file changed, 5 deletions(-)

Detailed changes

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 {