Skip to content

Commit

Permalink
filtering of files starting with .
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Feb 7, 2023
1 parent 799226f commit 0060ebf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions image/app/plugin/funcs/compare/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"integration/app/utils"
"io"
"net/http"
"strings"
"time"

"github.com/google/uuid"
Expand Down Expand Up @@ -91,6 +92,10 @@ func doCompare(req types.CompareRequest, key string) {
delete(repoNm, k)
tooLarge = append(tooLarge, v.Id)
}
// filter out the files and folders starting with "."
if strings.HasPrefix(v.Path, ".") || strings.HasPrefix(v.Name, ".") {
delete(repoNm, k)
}
}
nm = utils.MergeNodeMaps(nm, repoNm)

Expand Down

0 comments on commit 0060ebf

Please sign in to comment.