summary refs log tree commit diff stats
path: root/rod
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-01-29 14:44:53 +0100
committerAraq <rumpf_a@web.de>2011-01-29 14:44:53 +0100
commitc9f4ad0613dd5b7d0f3942b39ba212a136da3986 (patch)
treebeb97b7c70809da9c4cfcbcfd785a9dd97e0266f /rod
parent36accda8aaef4bd8daaf23e3eb369c2ca540f224 (diff)
downloadNim-c9f4ad0613dd5b7d0f3942b39ba212a136da3986.tar.gz
--recursivePath may handle dots correctly now
Diffstat (limited to 'rod')
-rwxr-xr-xrod/commands.nim4
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)