AAARRG! Do you have multiple subdirs then?
I mean DIR>DIR>FILES?
Because the script only goes into one layer. So for the following structure the script would look like this:
ROOT>DIR1>FILES1
ROOT>DIR2>FILES2
ROOT>DIR3>FILES3

DIM $dirarray[3]
$dirarray[0]="dir1"
$dirarray[1]="dir2"
$dirarray[2]="dir3"

If you do have multiple subdirs then the script could be modified but I think that would be a beautifull place to start getting aquainted with Kix! *grin*