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
lp1955314: Preserve file creation time when exporting track metadata (Windows) #4572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot reproduce the issue.
https://doc.qt.io/qt-5/qfile.html#copy "With the exception of permissions, which are copied, no other file metadata is copied." |
Force pushed with a reference to the Qt docs. If you still think this is not necessary I will close the PR. |
It seems to be necessary on Paolo's machine, but not on mine. Under the hood Qt uses ::CopyFile2 The the code of this PR sounds reasonable. Let's wait for the confirmation from Paolo that the issue is fixed. |
Behavior might differ depending on OS platform and version and the file system. We have to follow the Qt specs. |
I am sorry, but unfortunately this code is not able to preserve the creation time on Paolo's system. |
This error message: Originates from here: So we are in the alternative path where Qt replaces a move rename by a copy rename. Described here: https://doc.qt.io/qt-5/qfile.html#rename If this kicks in, the file creation time is also lost. So you may try to store the file creation time in the beginning and restore it ant the very end. Hopefully that will fix Paolo issue. |
https://bugs.launchpad.net/mixxx/+bug/1955314
Untested, because Windows.