tseqcon2.nim 191 B

12345678910
  1. import os
  2. proc rec_dir(dir: string): seq[string] =
  3. result = @[]
  4. for kind, path in walk_dir(dir):
  5. if kind == pcDir:
  6. add(result, rec_dir(path))
  7. else:
  8. add(result, path)