Menu

#31 SftpResumeGet and SftpResumePut

open
nobody
None
5
2009-05-12
2009-05-12
Dick Heth
No

These programs were written to enhance the SftpClient for j2ssh

What they do is add the ability to resume a get or a put of a file
so you do not have to restart the transfer from the beginning.

Disclaimer

These programs are distributed in the hope that they will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Assumptions

I have written my examples in this document from the perspective that
you are using unix. You will need to of course modify this documentation
slightly to support Windows.

I have assumed you have the java jdk installed on your system and the
JAVA_HOME environment variable has been defined.

To compile j2ssh you will also need apache ant installed on your system.

Credits

I would like to give credit to David Hayes, his tutorial referenced in
an article on his web site gave me the information I needed to write this patch:

http://www.topsecurity.dk/cmview/View?id=1598

Discussion

  • Dick Heth

    Dick Heth - 2009-08-03

    Note: I have added some functionality that I perceive as neccessary... you may
    not. That is when the source file date is newer than the destination file
    date, I assume that it must have been revised so I download the entire file.

    To make this work I needed to update the date string in FileAttributes.java so
    that it would always match the date string from the java File object. In
    addition to modify this file I also had to make some modifications to
    SftpClient.java.

     
  • Dick Heth

    Dick Heth - 2009-08-10
     
  • Dick Heth

    Dick Heth - 2009-08-10
     
  • Dick Heth

    Dick Heth - 2009-08-10

    make resume uploads and downloads date sensitive.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.