summary refs log blame commit diff stats
path: root/tests/compile/tos.nim
blob: fa9993cc972cef32aff5cc53aae44f635e7ff2c6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                    

                            

                
# 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(".")