login about faq

Hi,

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?.

Thanks

asked Aug 11 '11 at 09:30

nitin's gravatar image

nitin
11557

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:

SSH_SFTP_CHECKSUM_MODE=no

See also the sftpg3 manpage

link

answered Sep 20 '11 at 21:51

Martin%20Dobsik's gravatar image

Martin Dobsik ♦
599126

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×7
×4
×3
×1

Asked: Aug 11 '11 at 09:30

Seen: 3,358 times

Last updated: Sep 20 '11 at 21:51

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