cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
94 stars 35 forks source link

Set last modified to NOW when creating a new file #55

Closed overheadhunter closed 5 years ago

overheadhunter commented 5 years ago

When creating a new file without writing anything, the last modified date is not updated and defaults to 1970:

https://github.com/cryptomator/cryptofs/blob/b29c89b43e75c044b0d5969c8fe58cae1e6c26b6/src/main/java/org/cryptomator/cryptofs/fh/OpenCryptoFileModule.java#L48-L54

Instead it should be set to NOW in case of new files.