I would like to move files inside subfolders to another directory according to the file type.
The scenario is as follows...
I have a folder called “ORIGINAL FILES” with various folders inside called “CARD-1”, “CARD-2”, “CARD-3”, …..
Each folder CARD-x have the following structure: CARD-x / DCIM / xxx_PANA / photos and movies files here (*.jpg and *.mp4)
I would like to move according to file type to a different folder.
For example:
Move all video files inside the folder:
ORIGINAL FILES / CARD-1 / DCMI / xxx_PANA / *.mp4
To:
ORGANIZED FILES / CARD-1-MOVIE / *.mp4
And all photo files from initial folder to:
ORGANIZED FILES / CARD-1-PHOTO / *.jpg
Doing the same for the other folders called CARD-x.
I'm trying to do this with nest conditions, but I'm not getting it to work.
Thank you for any help.