one Loop for each folder


#1

Hi
I want to make an open office calc export (.csv).
Is it possible to make 1 loop for each folder ????

What I got:

$filename(%_parent_directory%.ods,utf-8)Track;Interpret;Titel;Länge;Pfad;
$loop(%_path%)%track%;%artist%;%title%;%_length%;%_folderpath%;
$loopend()

What I want:

Foldername1
a list of each file in folder1
Foldername2
a list of each file in folder2
Foldername3
a list of each file in folder3

thanks for help


#2
$filename(%_parent_directory%.ods,utf-8)$loop(%_folderpath%)%_directory%
Track;Interpret;Titel;Länge;Pfad;
$loop(%_path%)%track%;%artist%;%title%;%_length%;%_folderpath%;
$loopend()
$loopend()