Writing files and directories simultaneously?

Hello all,

a question regarding file/directory writing: lets say 100 sound files should be written into 10 folders (created at the time of writing),

File.mkdir("path/to/%".format(foldernames)); //create 10 folders

~100sounds.at(index).write("path/to/foldernames???/sound%.wav".format(index+1))  //into which 100 sounds should be written

how do i access the folder names with .format if symbol % is already taken for the filename itself? (is there a subsequent symbol that could be used?)

thanks,
jan

"First percent mark = %, second percent mark = %".format(10, 20);

hjh

amazing, thank you james!