Version 4 (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 mottivation for me to write this script was writing the documentation for a project at the University and wanted to show our directory layout of our project repositories.



  • 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