I am syncing files between macOS and a remote Ubuntu server.
On Ubuntu, the date of last modification of a directory doesn't change when I store, modify or delete a file inside this directory. This behavior makes sense to me, because it's the directory's content, not the directory itself, that has changed.
On macOS this behavior is different (and seems irrational to me): Although the directory itself stays unchanged, its "last modified" date gets changed every time when something inside this directory gets changed.
So, when I create a directory on macOS and sync it to Ubuntu, everything is fine: both have the same date. But when I move files in one of the directories, and sync those files, the directories date on Ubuntu keeps its old value, but the date on the corresponding directory on macOS will be changed, and then, because of this different date, my sync-programm shows differences where in fact no differences are.
Is there a setting in macOS, that induces my iMac's directories to behave like their counterparts on Ubuntu?