tree
command on Linux generates visual hierarchy of files and directories, for instance:
/var/log % tree
.
+-- anaconda.ifcfg.log
+-- anaconda.yum.log
+-- audit
+-- boot.log
+-- btmp
+-- ConsoleKit
¦ +-- history
+-- cron
+-- cron-20151227.gz
+-- dmesg
+-- httpd
¦ +-- access_log
¦ +-- access_log-20150329.gz
¦ +-- access_log-20150405
¦ +-- error_log
¦ +-- error_log-20150329.gz
¦ +-- error_log-20150405.gz
¦ +-- error_log-20150412.gz
¦ +-- error_log-20150419
+-- iptables.log
+-- jenkins
¦ +-- jenkins.log
+-- lastlog
+-- maillog
Is there any library for Python that would do something like that, but that would render (decent) HTML?