Skip to content

Commit

Permalink
perf: front dir skip
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Mar 17, 2023
1 parent 82464e3 commit 0d180b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func scanFolder(folder string, deep bool, wg *sync.WaitGroup) {
for _, entry := range entrys {
p := path.Join(folder, entry.Name())
if entry.IsDir() {
if deep {
if deep && !ignore(p) {
wg.Add(1)
pool.Submit(func() { scanFolder(p, deep, wg) })
}
Expand Down

0 comments on commit 0d180b4

Please sign in to comment.