diff options
author | Joey Payne <jyapayne@gmail.com> | 2016-06-17 08:38:55 -0600 |
---|---|---|
committer | Joey Payne <jyapayne@gmail.com> | 2016-06-17 08:38:55 -0600 |
commit | 0110a66c680cf1851b0a3bdac4dbf9f31bcc0287 (patch) | |
tree | bac4ec511748fde65a37f68c9c32617ce13f4572 /tools/niminst | |
parent | 02895ba934ffc5bdee325c2f846774da8502cfbe (diff) | |
download | Nim-0110a66c680cf1851b0a3bdac4dbf9f31bcc0287.tar.gz |
Use `walkPattern` to walk both directories and files
Diffstat (limited to 'tools/niminst')
-rw-r--r-- | tools/niminst/niminst.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim index 79e552bde..b4f9c3687 100644 --- a/tools/niminst/niminst.nim +++ b/tools/niminst/niminst.nim @@ -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): |