SSH.NET
SSH.NET copied to clipboard
SftpClient.UploadFile overwrites file with canOverride=False
When I upload a file that already exists and "canOverride" is False it still uploads and overwrites the existing file.
I use:
Using myFile As System.IO.Stream = System.IO.File.OpenRead("c:\test.txt")
SSH_sFTPclient.UploadFile(myFile, "test.txt", False)
End Using
As far as I know the problem only occurs on one sftp-server, which identifies itself as "SSH-2.0-CerberusFTPServer_12.0"