Dump Directory content to PHP directory
1 answer
Use the directory of the recursive iterator to get all the filenames. Loop on the result (filenames) and move them inside the loop to the desired directory.
You can also try glob
+2
a source to share