Use walkPattern to walk both directories and files
This commit is contained in:
parent
02895ba934
commit
0110a66c68
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue