Page 1 of 1

Targeting file types from arbitrarily nested folders?

PostPosted: Wed Nov 03, 2021 10:26 am
by aosaigh
I have a folder with 100s of nested folders of varying depth. In these folders are images, videos, gifs etc.

Code: Select all
/Folder
/Folder/01/A.jpg
/Folder/01/B.mp4
/Folder/C.gif
/Folder/02/03/D.jpg
/Folder/02/04/E.mp4
...


I would like to create rules that essentially search this folder for various files types and move them to another folder entirely, disregarding their initial folder structure.

In other words, the above would end up:

Code: Select all
/Images/A.jpg
/Images/D.jpg
/Videos/B.mp4
/Videos/E.mp4
/GIFs/C.gif
...


I understand I will likely need 1-rule-per-filetype which is fine, but I'm having trouble figuring out if/how to do this. I've read through the "nested conditions" and "processing subfolders" documentation, but I'm not sure how I can target specific filetypes when using the "any of its subfiles or subfolders".

Re: Targeting file types from arbitrarily nested folders?

PostPosted: Wed Nov 03, 2021 10:45 am
by aosaigh
OK, looks like I got it working. I didn't realise I needed to use a rule to filter

So now I have:

1. if Kind is Folder
Run rules on folder contents
2. if Kind is Image
Move to Folder Images

This seems to be working great!