On Windows, a newly-downloaded file (created via skicka download /Remote C:\Local) has its modification time set to "now", rather than the modification time of the remote file.
Re-running skicka download syncs the metadata and corrects the local modification time.
The file should have the correct (remote) modification time after its initial download.
I suspect this occurs because defer writeCloser.Close() resets the modification time (to now) after os.Chtimes runs.
On Windows, a newly-downloaded file (created via
skicka download /Remote C:\Local
) has its modification time set to "now", rather than the modification time of the remote file.Re-running
skicka download
syncs the metadata and corrects the local modification time.The file should have the correct (remote) modification time after its initial download.
I suspect this occurs because
defer writeCloser.Close()
resets the modification time (to now) afteros.Chtimes
runs.