AsciiTreeGenerator

Prints a unix-style tree with an input directory and depth. Omitting depth parameter prints all contents recursively.

Example:

PrintTree(sys.stdout, "some\\path\\here", depth=3)