Please help, I have a file that gets dumped into a temp folder. Example file name testimageYYMMDDHHMMSS.JPG, what I am trying to do is a foreach loop that will automate moving it to the new location within the same FTP directory, which the new location folder and subfolder will have; 1 folder for the year,12 folder for the months, 31 folder for the days of the weeks, with 4 time of day folders in each day of the week (every 6 hours 0000,0600,1200,1800).
Thanks in advance