The RemoteFileInfo.LastWriteTime.Millisecond value is always 0.
                After sending the file to the SSH server, the 
Therefore, the date value of the local file is almost always greater than the date value of the remote file.
    
Why the value of 
            
        RemoteFileInfo.LastWriteTime.Millisecond value becomes 0.
Therefore, the date value of the local file is almost always greater than the date value of the remote file.
Dim fiLocalFile As New FileInfo("PathToLocalFile") Dim rfiRemoteFile As RemoteFileInfo rfiRemoteFile = sessionSSH.GetFileInfo("PathToRemoteFile") fiLocalFile.LastWriteTime > rfiRemoteFile.LastWriteTime = True
RemoteFileInfo.LastWriteTime.Millisecond is equal to 0?