Files
Nim/tests/template/tdefault_nil.nim
2018-08-22 15:43:36 +02:00

15 lines
279 B
Nim

# bug #2629
import sequtils, os
template glob_rst(basedir: string = ""): untyped =
if baseDir.len == 0:
to_seq(walk_files("*.rst"))
else:
to_seq(walk_files(basedir/"*.rst"))
let
rst_files = concat(glob_rst(), glob_rst("docs"))
when isMainModule: echo rst_files