I already found a similar question and thus know about the dirtree package. However, the result does not really look nice.
Also I'd like to put the tree in a figure environment and get it centered. This just does not work since only the text is centered, not the tree structure
\begin{figure}
\centering
\dirtree{%
.1 spam.
.2 ham.
.2 eggs.
.3 more spam.
.3 dead parrots.
}
\caption[Directory Structure]{This is an example directory structure.}
\label{fig:dir}
\end{figure}
Is there a better way to create file system visualizations?
