twrap_walkdir.nim 236 B

1234567891011121314151617
  1. import os
  2. # bug #3636
  3. proc fooIt(foo: string): iterator(): (string) =
  4. iterator temp(): (string) =
  5. for f in walkDirRec(foo): # No problem with walkFiles
  6. yield f
  7. return temp
  8. let it = fooIt(".")
  9. for x in it():
  10. echo x