[Tex/LaTex] file extensions in dirtree

dirtree

I am using dirtree to generate the tree structure for a directory.

The problem is I cannot use . between file name and file extension as it is
acting as delimiter between two nodes in a tree.

Can anybody help me?

Best Answer

It works fine for me: The . is only used as a node delimiter if it's at the end of the line. Am I misunderstanding your question?

\documentclass{article}
\usepackage{dirtree}
\begin{document}
\dirtree{%
.1 /.
.2 bin.
.2 home.dir.
.3 jeancome.
}
\end{document}