Page 1 of 1

Strange behavior of "Date Last Modified" on iCloud drive

PostPosted: Fri Jul 05, 2024 9:53 pm
by misiektoja
Hey,

I have following rule detecting if the specific file's last modified date changes:

Image

Nothing fancy, I have many such rules in different directories. But ... the difference here is that the watched directory is on iCloud drive (fully downloaded & available offline).

And the behaviour is very strange, essentially anytime I change any file in this specific iCloud dir it triggers this rule. So for example I modify the file called test2.txt and it triggers the rule above for file test1.txt ... like its modification date/time changed, but in fact it did not (I checked via CLI stat cmd). It appears like it takes the dir modification time instead ? A bug ?

For some files I overcame this via "Size did change" rule, but for some I cannot use it (as its size might be the same even though its contents / last modified timestamp changed).

Re: Strange behavior of "Date Last Modified" on iCloud drive

PostPosted: Mon Jul 08, 2024 8:43 am
by Mr_Noodle
It's better to do something like "Date last modified is after date last matched" if you want to catch changes to a file.

Re: Strange behavior of "Date Last Modified" on iCloud drive

PostPosted: Fri Jul 12, 2024 2:10 pm
by misiektoja
Thx for the tip! Initially your suggested rule did not work for me, because the first 3 rules in the screenshot are tagging files with labels (depending on their modification time), so one of them is always matched, which means the 4th rule was never executed. However once I moved the last one as first one then it seems to behave correctly. I need to observe it few more days.