I have files nested within multiple sub-folders. I want to move these files, one folder up the folder structure and rename the files as per its new parent folder. I will need this to be automated with a script.
Example logic
- Find Root folder
- Get contents of Subfolder of Subfolder files.
- Move files to its Parent folder (aka ‘Attachments’ folder)
- Rename files to with its current Parent folder name.
- Delete empty Subfolder
- Loop above action of Root folder folders until complete.
Example folder structure
Desired Result