if i get ya right, u want to write all the files in your mp3 dir yo the file stuff.txt, then do
//return $findfile($mp3dir,*.mp3,0,write stuff.txt $nopath($1-))
the $nopath will remove the dir, to write only the filename