Print to a file a directory's folder/subfolder tree