stefankueng / CryptSync

CryptSync is a small utility that synchronizes two folders while encrypting the contents in one folder. That means one of the two folders has all files unencrypted (the files you work with) and the other folder has all the files encrypted.
https://tools.stefankueng.com/CryptSync.html
GNU General Public License v3.0
387 stars 72 forks source link

Two timestamp-related adaptations #90

Closed dansyl1 closed 1 year ago

dansyl1 commented 1 year ago

While testing the "archive" attribute reset changes I noticed that the "last modified" timestamp was not always restored correctly. Reasons vary as per comment I put in the code I put between #if 0/#endif. Code change I propose here fix this: Decrypted files have correct "last modified" timestamp, as recorded in the encrypted file.

Testing also showed that the "created" and "last accessed" timestamp were not restored. A recent 7Zip change added ability to record a file's "last accessed" and "created" timestamps so they can be restored. Future archives created by CryptSync will have these timestamps as well with the proposed code change.

dansyl1 commented 1 year ago

Please ignore. Will resubmit after using proper baseline... Sorry for any lost time.