nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.55k stars 1.47k forks source link

oswalkdir.walkDirRec wont return folders #11458

Closed juancarlospaco closed 4 years ago

juancarlospaco commented 5 years ago

https://nim-lang.org/docs/oswalkdir.html

Nim 1.0.0. Linux x86_64 .

Example

NimScript FAIL

import oswalkdir
for f in walkDirRec(".", {pcDir}): echo f

Nim WORKS

import os
for f in walkDirRec(".", {pcDir}): echo f

oswalkdir.walkDir does return folders.

Both return files just Ok.

juancarlospaco commented 5 years ago

Still repro on 1.0.0.