Page 1 of 1

Check if a folder has any of its files or subfolders changed

PostPosted: Fri May 12, 2017 11:53 am
by RMeira
Hi,

I use a folder rule to "Run rules on folder contents". It's working fine and well!
However, every time Hazel pass through the monitored folder, this rule always triggers for every single folder on it.
Is there a way to optimize this and add a condition to check if there was any change on folder contents?
Something like this:
if all met
kind is folder
if any condition met on any of its subfiles or subfolders
I need an attribute to check for any change

This is important because it would reduce Hazel processing rules a lot - only change folders will be processed.

Thanks in advance.

Re: Check if a folder has any of its files or subfolders cha

PostPosted: Mon May 15, 2017 10:05 am
by Mr_Noodle
You can check the date modified but keep in mind that doing it that way won't be much different than having Hazel descend into the folder anyways. It could possibly be more resource-intensive as it may end up doing it twice every time.

If you provide more specifics about your layout and what kinds of changes you want to monitor, then there might be some tricks you can do.