diff options
author | Araq <rumpf_a@web.de> | 2011-01-29 14:18:43 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-01-29 14:18:43 +0100 |
commit | 36accda8aaef4bd8daaf23e3eb369c2ca540f224 (patch) | |
tree | 39a28c97a100ce26d2bb6a9329811fcc83306a72 /lib/pure | |
parent | f46870fe1ce3a28ab44417effd1c684522568a8d (diff) | |
download | Nim-36accda8aaef4bd8daaf23e3eb369c2ca540f224.tar.gz |
unary <; countup two type parameters; --recursivePath should work now
Diffstat (limited to 'lib/pure')
-rwxr-xr-x | lib/pure/os.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 229fad441..987662975 100755 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -861,7 +861,7 @@ iterator walkDir*(dir: string): tuple[kind: TPathComponent, path: string] = if y != "." and y != "..": var s: TStat y = dir / y - if stat(y, s) < 0'i32: break + if lstat(y, s) < 0'i32: break var k = pcFile if S_ISDIR(s.st_mode): k = pcDir if S_ISLNK(s.st_mode): k = succ(k) @@ -1245,3 +1245,4 @@ proc findExe*(exe: string): string = result = "" {.pop.} + |