I followed the forest based solution of this post Making a (simple) directory tree to create a directory structure. Right to each file and name I want to add its full path. Full paths should also be left aligned. I came up with this dirty solution:
\documentclass{standalone}
\usepackage{forest}
\usetikzlibrary{positioning}
\begin{document}
\begin{forest}
for tree={
font=\ttfamily,
grow'=0,
child anchor=west,
parent anchor=south,
anchor=west,
calign=first,
s sep=6pt,
inner sep=0pt,
edge path={
\noexpand\path [draw, \forestoption{edge}]
(!u.south west) +(6pt,0) |- (.child anchor)\forestoption{edge label};
},
before typesetting nodes={
if n=1
{insert before={[,phantom]}}
{}
},
fit=band,
before computing xy={l=5mm},
}
[a,name=a
[b
[c
[d]
]
]
[e
[f]
[b]
]
]
%
\node[right of=a,node distance=2cm] (desc) {\tt /a};
\node[below=13pt of desc.west,anchor=west] (desc) {\tt /a/b};
\node[below=13pt of desc.west,anchor=west] (desc) {\tt /a/b/c};
\node[below=13pt of desc.west,anchor=west] (desc) {\tt /a/b/c/d};
\node[below=12pt of desc.west,anchor=west] (desc) {\tt /a/e};
\node[below=13pt of desc.west,anchor=west] (desc) {\tt /a/e/f};
\node[below=13pt of desc.west,anchor=west] (desc) {\tt /a/e/b};
\end{forest}
\end{document}
That displays like this:
It looks ok, but I would like to come up with a clean solution that avoids hard-coding distances between full paths.

