If I copy a file (using Windows Explorer) to a jfileserver share (using version 1.4.0), the last modified date isn't preserved.
Looking at a Wireshark capture, what happens during the file copy is that
- The file is created
- The file is being written to.
- SetFileInformation is called to set the last modified date to the source file's date.
- The file is closed.
I strongly suspect that the bug happens because writing to a file only increments its write count, but doesn't yet update the file's last modified date. That process only happens when the file is being closed, with the unfortunate side effect that any SetFileInformation calls that happened between the last file write and the file being closed therefore get overwritten.