Change summary
internal/fsext/ls.go | 5 -----
1 file changed, 5 deletions(-)
Detailed changes
@@ -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 {