summary refs log blame commit diff stats
path: root/tests/accept/compile/tos.nim
blob: 9ab4295f8cc7cbe1b9a42b6ec09cfcad84297e80 (plain) (tree)
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 pcDirectory: walkDirTree(f)
    of pcLinkToDirectory: nil

walkDirTree(".")