diff options
Diffstat (limited to 'tests/stdlib/tos.nim')
-rw-r--r-- | tests/stdlib/tos.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/stdlib/tos.nim b/tests/stdlib/tos.nim new file mode 100644 index 000000000..fa9993cc9 --- /dev/null +++ b/tests/stdlib/tos.nim @@ -0,0 +1,12 @@ +# test some things of the os module + +import os + +proc walkDirTree(root: string) = + for k, f in walkDir(root): + case k + of pcFile, pcLinkToFile: echo(f) + of pcDir: walkDirTree(f) + of pcLinkToDir: nil + +walkDirTree(".") |