Results 1 to 3 of 3
  1. #1
    francp is offline Member
    Join Date
    Jun 2014
    Rep Power

    Lightbulb Jsch Posix-rename


    I'm implementing SFTP via JSCH and would like to utilise the new feature of 'posix-rename' to overwrite existing files in a directory. The jsch changelog states

    - feature: added support for following OpenSSH's sftp extensions,,,,
    and some methods and a class to use those functionalities,
    ChannelSftp#hardlink(String oldpath, String newpath),

    How do i implement this in my Java code? can't find any examples?

    Thanks in advance

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Jsch Posix-rename

    What bit don't you understand?
    It's pretty much all there in the API isn't it?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Rep Power

    Default Re: Jsch Posix-rename

    Any examples for JSCH are in the source download and those form the basic usage documentation. In the form of unit tests if I remember correctly.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. How to rename GUI Title
    By rjagan in forum New To Java
    Replies: 5
    Last Post: 06-11-2014, 11:51 AM
  2. How to rename a file
    By Java Tip in forum
    Replies: 0
    Last Post: 04-05-2008, 10:11 AM
  3. how to rename a subdirectory
    By richardzhang in forum New To Java
    Replies: 0
    Last Post: 08-10-2007, 04:28 AM
  4. How to Rename a File
    By Ada in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 12:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts