Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

void com::trilead::ssh2::SFTPv3Client::createSymlink ( String  src,
String  target 
) throws IOException [inline]

Create a symbolic link on the server. Creates a link "src" that points to "target".

srcSee the comment for the class for more details.
targetSee the comment for the class for more details.

Definition at line 625 of file SFTPv3Client.java.

            int req_id = generateNextRequestID();

            /* Either I am too stupid to understand the SFTP draft
             * or the OpenSSH guys changed the semantics of src and target.

            TypesWriter tw = new TypesWriter();
            tw.writeString(target, charsetName);
            tw.writeString(src, charsetName);

            if (debug != null)
                  debug.println("Sending SSH_FXP_SYMLINK...");

            sendMessage(Packet.SSH_FXP_SYMLINK, req_id, tw.getBytes());


Generated by  Doxygen 1.6.0   Back to index