-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modification date of an initially synchronized directory on client is not set to the modification date of the corresponding directory on the server #7119
Comments
It's still not synced in any way later.
Thank you for considering the reported issue. Much appreciated. |
Would you also mind to set the creation date (ctime) of the local directories to the creation time of the corresponding directories on the server? Only upon creation if the local directory, as set out above with respect to mtime? |
About ctime: I don't think anything else in the client adjusts ctime and it's not stored on the server. I agree ctime > mtime is odd and setting it to mtime on creation would probably be nicer. That's a larger and different change though (feel free to make a new ticket). |
ctime is inode change time, not creation time |
Thanks, yes, I didn't mean ctime. I meant the Windows creation time that @herrep was asking about. |
2.6.0alpha2 (build 12097), Windows 10 @ckamm @guruz Have you done anything with the creation date? Currently the modification time is the same as on the server for both files and folders, Windows and macOS. The creation date on macOS is the same as modification date, on Windows creation time is the time at the point of downloading. This is inconsistent. |
@HanaGemela No, the client doesn't manually adjust change time or creation time. Creation time isn't stored on the server, so at best we could set it to mtime initially. That'd be a different issue though. |
Actual behaviour:
The modification date of a directory easily changes, e.g. when creating a temporary file inside the directory or when adding or deleting files. Therefore, the modification date of directories is not synchronized between client and server.
Drawback of the actual behavior:
In many environments, there are a lot of directories which are not touched at all; i.e. the modification date of such directories do not change at all. The users can notice this by checking that the modification date indeed does not change and remains old. But this concept of monitoring directories that are not touched for a long time do not work when working on a "fresh client" that needs to be synchronized first: Upon the initial sync of a directory, the directory at the client has the current date as creation and modification date. Therefore, when watching all the directories at the client, it appears that even directories which have not be touched for ages appear to be regularly used, as they all have the same modification date when creating the directories for the initial sync.
Desired behavior:
It is suggested that, only upon an INITIAL sync of a directory on the client, when the directory needs to be created first, the creation and modification date of this directory at the client is set to the creation and modification date of the corresponding directory on the server.
Obviously, later changes of the modification date of directories do not need to be synchronized in order to save resources.
The text was updated successfully, but these errors were encountered: