diff --git a/internal/files/files.go b/internal/files/files.go index 853379f..7f8a1c9 100644 --- a/internal/files/files.go +++ b/internal/files/files.go @@ -55,6 +55,10 @@ func Find(dir string, recursive bool, f *filter.Filter) (files Files, err error) func walk_dir(dir string, f *filter.Filter) (files Files) { err := filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error { + if dir == path { + return nil + } + p, e := filepath.Abs(path) if e != nil { return err