Page 1 of 1

Check Folder Contents and Move if True

PostPosted: Thu Oct 12, 2017 3:09 pm
by seaneee
I'm looking for a bit of help creating a rule that analyzes folder contents and then moves the entire folder, not just the contained file.

For example. If I download a music archive and expand it, the contents might contain MP3s, cover art and a booklet. I'd like Hazel to check for music files and if the rule is true, move the entire folder.

Additionally, is there a way to do the same with archived files without expanding them?

Apologies if this is an obvious ask, I'm a little gun-shy after running a rule set that wreaked havoc on my downloads folder.

Re: Check Folder Contents and Move if True

PostPosted: Fri Oct 13, 2017 9:48 am
by Mr_Noodle
Search the manual for "nested conditions". Using those, you can have a condition match a folder based on its contents. You can't have it operate on archives, though.