Hi thanks alot for that. It works.
Now there's another smaller problem.
Now that I've manage to store all their file path into array. I will loop thru that array and then use the rename() to move those files to another place. So at the end of the process, what's left behind all the several level of empty subfolder.
Using the resursive loop, how do I loop thru and delete everything give a directory. All are just empty sub folders.