diff options
author | Araq <rumpf_a@web.de> | 2011-01-29 14:44:53 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-01-29 14:44:53 +0100 |
commit | c9f4ad0613dd5b7d0f3942b39ba212a136da3986 (patch) | |
tree | beb97b7c70809da9c4cfcbcfd785a9dd97e0266f /rod | |
parent | 36accda8aaef4bd8daaf23e3eb369c2ca540f224 (diff) | |
download | Nim-c9f4ad0613dd5b7d0f3942b39ba212a136da3986.tar.gz |
--recursivePath may handle dots correctly now
Diffstat (limited to 'rod')
-rwxr-xr-x | rod/commands.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rod/commands.nim b/rod/commands.nim index 177b647d9..740d349c2 100755 --- a/rod/commands.nim +++ b/rod/commands.nim @@ -279,8 +279,10 @@ proc addPath(path: string, info: TLineInfo) = lists.PrependStr(options.searchPaths, path) proc addPathRec(dir: string, info: TLineInfo) = + var pos = dir.len-1 + if dir[pos] == '/': inc(pos) for k,p in os.walkDir(dir): - if k == pcDir and '.' notin p: + if k == pcDir and p[pos] != '.': addPathRec(p, info) if not contains(options.searchPaths, p): liMessage(info, hintPath, p) |