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

    Lightbulb Jsch Posix-rename

    Hi,

    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,
    posix-rename@openssh.com,
    statvfs@openssh.com,
    hardlink@openssh.com,
    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
    Posts
    12,224
    Rep Power
    20

    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
    Location
    Netherlands
    Posts
    4,358
    Rep Power
    6

    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, 12:51 PM
  2. How to rename a file
    By Java Tip in forum java.io
    Replies: 0
    Last Post: 04-05-2008, 11:11 AM
  3. how to rename a subdirectory
    By richardzhang in forum New To Java
    Replies: 0
    Last Post: 08-10-2007, 05:28 AM
  4. How to Rename a File
    By Ada in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 01: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
  •