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