Re: The RemoteFileInfo.LastWriteTime.Millisecond value is always 0.
I thought so.
In my opinion, the simplest and most reliable solution would be to reset the milliseconds of the local file:
In my opinion, the simplest and most reliable solution would be to reset the milliseconds of the local file:
Dim fiLocalFile As New FileInfo("PathToLocalFile")
Dim rfiRemoteFile As RemoteFileInfo
rfiRemoteFile = sessionSSH.GetFileInfo("PathToRemoteFile")
fiLocalFile.LastWriteTime.AddMilliseconds(-fiLocalFile.LastWriteTime.Millisecond) = rfiRemoteFile.LastWriteTime = True