title: How to check if the connection to a SFTP server is successful using WinSCP in VB.NET
body: <p>I have sent a file by SFTP to another server using WinSCP in VB.NET.</p>
  
  <p>I would like to see if the connection was successful or not.</p>
  
  <p>I also need to know if the file already exists in the directory beforehand.  </p>