Strange behavior of "Date Last Modified" on iCloud drive

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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).
misiektoja
 
Posts: 6
Joined: Fri Jun 28, 2024 7:45 pm

It's better to do something like "Date last modified is after date last matched" if you want to catch changes to a file.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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.
misiektoja
 
Posts: 6
Joined: Fri Jun 28, 2024 7:45 pm


Return to Support