From 5b8338d115f1839be12b0670a221d7c02a4c0e73 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 25 Jul 2009 11:35:33 +0200 Subject: Add sftp_symlink function. --- include/libssh/sftp.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 043eddd..cb5c1af 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -592,6 +592,19 @@ int sftp_chmod(SFTP_SESSION *sftp, const char *file, mode_t mode); */ int sftp_utimes(SFTP_SESSION *sftp, const char *file, const struct timeval *times); +/** + * @brief Create a symbolic link. + * + * @param sftp The sftp session handle. + * + * @param target Specifies the target of the symlink. + * + * @param dest Specifies the path name of the symlink to be created. + * + * @return 0 on success, < 0 on error with ssh and sftp error set. + */ +int sftp_symlink(SFTP_SESSION *sftp, const char *target, const char *dest); + /** * @brief Canonicalize a sftp path. * -- cgit