summary refs log tree commit diff stats
path: root/tests/iter/twrap_walkdir.nim
blob: 4ac487d8e713b14ca837a430a9a97b7b40453337 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os

# bug #3636

proc fooIt(foo: string): iterator(): (string) =
  iterator temp(): (string) =
    for f in walkDirRec(foo): # No problem with walkFiles
      yield f
  return temp

let it = fooIt(".")
for x in it():
  echo x