We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f9a59 commit bb89304Copy full SHA for bb89304
pkg/walkfs/walkfs.go
@@ -230,6 +230,14 @@ func (walkfs *WalkFS) shouldVisit(info fs.FileInfo) bool {
230
231
// shouldExcludePath returns true if the given relative path should be excluded
232
func (walkfs *WalkFS) shouldExcludePath(relpath string) bool {
233
+ // Exclude any paths which have a .<folder> as part of their path
234
+ if relpath != "." {
235
+ for _, path := range strings.Split(relpath, pathSeparator) {
236
+ if strings.HasPrefix(path, ".") {
237
+ return true
238
+ }
239
240
241
// Include all files if no inclusions are specified
242
if len(walkfs.expath) == 0 {
243
return false
0 commit comments