From 4727369c623c315d66f0a0d7dd6c1edb11ab5a68 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 7 Jun 2024 11:25:40 +0700 Subject: [PATCH] save --- erigon-lib/common/dir/rw_dir.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erigon-lib/common/dir/rw_dir.go b/erigon-lib/common/dir/rw_dir.go index c9d0a1b6c16..6e07f6665b1 100644 --- a/erigon-lib/common/dir/rw_dir.go +++ b/erigon-lib/common/dir/rw_dir.go @@ -19,6 +19,7 @@ package dir import ( "os" "path/filepath" + "strings" "golang.org/x/sync/errgroup" ) @@ -133,6 +134,9 @@ func ListFiles(dir string, extensions ...string) (paths []string, err error) { if f.IsDir() && !f.Type().IsRegular() { continue } + if strings.HasPrefix(f.Name(), ".") { + continue + } match := false if len(extensions) == 0 { match = true