Mode and modification times on directories should be preserved
If I sync a file, the metadata on the target is different from on the source. So far I have only checked output from stat, not xattrs.
Could you expand on which metadata it is you are looking for, specifically (i.e. Spotlight keywords, labels, resource forks, Windows extended attributes...)? Some might be possible, some might be to OS specific to be suitable, I'm not sure, haven't thought it through yet. :)
Sure: everything returned by stat, and most of the stuff returned by attr -l FILE (probably not the selinux context though)
Right. That's Linux specific then; not impossible for sure, but not probably something I will prioritize.
Your choice :) I just found it confusing that the directories sorted by date were different. I think it might prevent users from seeing which version of a file they have if the mtime, etc is different.
Ah... Times should be preserved for sure. It does that now for files, because files are what it synchronizes, but not directories. That also means empty directories will not be synchronized (or deleted)... Perhaps that is something that should be fixed. I'll tag that as a bug.
I'm changing the title on this to apply to the directory time issue; feel free to open other issues on other metadata.
https://github.com/calmh/syncthing/issues/20 opened.
This turned out to be more of a pain than I expected, shuffling it forward a bit while I think about more elegant solutions...
Writing this here so I don't forget (again): touch ~/Sync/file1 will not be synced across the cluster because it is zero length.
(-> #44)
This is ready to merge soon, notes and discussion at http://discourse.syncthing.net/t/v0-7-2-directory-syncing/16