Skip to content

Commit

Permalink
fix: skip dir
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 6, 2020
1 parent 93c4dab commit 39d500e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions glob.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package zglob
import (
"fmt"
"os"
"path/filepath"
"strings"

"github.com/gobwas/glob"
Expand Down Expand Up @@ -64,6 +65,7 @@ func GlobWithFs(fs afero.Fs, pattern string) ([]string, error) {
}

matches = append(matches, filesInDir...)
return filepath.SkipDir
} else {
matches = append(matches, path)
}
Expand Down

0 comments on commit 39d500e

Please sign in to comment.