Version 5 (modified by ulrich, 14 years ago) (diff)



The provided script written in python provides a LaTeX compatible output for use with the ‚Äčdirtree package. So one can display directory trees which are generated right at the time when the document is generated. I use makefiles for generating my documents with pdflatex and bibtex and then simply add a few lines to use this small script.


The motivation for me writing this script came to me, when I was writing the documentation for a project at the University and wanted to show our directory layout of our project repositories. I did not want to write all this directories down by hand and even worse keeping it up-to-date.



  • one can exclude directories from processing
  • one can use .comment files to print comments behind the listed directory in which the file lies
  • one can specify an other file to use as comment file


  • one let the script print directory sizes as comment or at the beginning of the comment
  • one can specify if files should be considered, specified closer as
    • hidden files
    • seperate exclude list