summary refs log tree commit diff stats
path: root/tests/stdlib/tos.nim
blob: cae388792cf5a3d376345c540b4a448346618234 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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: discard

walkDirTree(".")