login about faq


We are using the Java API to transfer files using the class com.ssh.sft.File.RegularFile . It seems that we are not able to overwrite the already transfered file using the copy() method, as we receive the SftException as SSH_SFT_OK_HASH_MATCH .

How to control this using the API?.


asked Aug 11 '11 at 09:30

nitin's gravatar image


edited Aug 11 '11 at 09:54

Hmmm.... SSH_SFT_OK_HASH_MATCH should mean that the source file is exactly the same as a destination file and therefore the transfer was skipped. As far as I know currently it is only possible to control this behavior by setting environment variable of the process that uses API to disable the checksum checking:


See also the sftpg3 manpage


answered Sep 20 '11 at 21:51

Martin%20Dobsik's gravatar image

Martin Dobsik

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Aug 11 '11 at 09:30

Seen: 4,905 times

Last updated: Sep 20 '11 at 21:51

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.