summary refs log tree commit diff stats
path: root/tests/stdlib/tos.nim
blob: ebe577b00939f601b76c2f4db06dfd2b0173faac (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(".")