mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-05 19:34:12 +00:00
Use walkPattern to walk both directories and files
This commit is contained in:
@@ -253,7 +253,7 @@ proc addFiles(s: var seq[string], patterns: seq[string]) =
|
||||
walkDirRecursively(s, p, p, false)
|
||||
else:
|
||||
var i = 0
|
||||
for f in walkFiles(p):
|
||||
for f in walkPattern(p):
|
||||
if existsDir(f):
|
||||
walkDirRecursively(s, f, p, false)
|
||||
elif not ignoreFile(f, p, false):
|
||||
|
||||
Reference in New Issue
Block a user