diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2022-10-28 11:01:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 10:01:28 +0200 |
commit | 779b1cc5beefa6064cb640401f1969c95a96c205 (patch) | |
tree | f2f90b81d95cd8d1aa64236dd053cb34dab95ccc /tools/nimgrep.nim | |
parent | e68a6ea759c65ec2ec92cfe5ef922c5c3ef0623e (diff) | |
download | Nim-779b1cc5beefa6064cb640401f1969c95a96c205.tar.gz |
Fix #20628 for Windows (#20667)
* Fix #20628 for Windows * Move isRegular - !isSpecial and onlyRegular - skipSpecial * Forgot to change it in 1 more place
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 3d2f04c47..599c616ba 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, onlyRegular = true): + for kind, path in walkDir(d, skipSpecial = true): case kind of pcFile: if path.hasRightPath(walkOptC) and rightDirForFiles: |