diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2022-10-25 08:42:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 07:42:47 +0200 |
commit | 8ed2431db0d95bb30d69c563a137e348cd299621 (patch) | |
tree | 8ec35a56161b3c84b15c8ca1a84db8875e479c71 /tools/nimgrep.nim | |
parent | c1343739e15eb2b225d8a523d577c0bc84148ad9 (diff) | |
download | Nim-8ed2431db0d95bb30d69c563a137e348cd299621.tar.gz |
Implement Unix file regularity check (#20448) (#20628)
* Implement Unix file regularity check * update std/dirs also
Diffstat (limited to 'tools/nimgrep.nim')
-rw-r--r-- | tools/nimgrep.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nimgrep.nim b/tools/nimgrep.nim index e847528d1..3d2f04c47 100644 --- a/tools/nimgrep.nim +++ b/tools/nimgrep.nim @@ -989,7 +989,7 @@ iterator walkDirBasic(dir: string, walkOptC: WalkOptComp[Pattern]): string let rightDirForFiles = d.isRightDirectory(walkOptC) var files = newSeq[string]() var dirs = newSeq[string]() - for kind, path in walkDir(d): + for kind, path in walkDir(d, onlyRegular = true): case kind of pcFile: if path.hasRightPath(walkOptC) and rightDirForFiles: |