blob: fa9993cc972cef32aff5cc53aae44f635e7ff2c6 (
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: nil
walkDirTree(".")
|