SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

SftpClient.UploadFile overwrites file with canOverride=False

Open phlexss opened this issue 2 years ago • 0 comments

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"

phlexss avatar Sep 21 '23 09:09 phlexss