aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/sftp.h
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-25 11:35:33 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-25 12:32:51 +0200
commit11a6ed907d7d54a388ee1eb148803a326cee54f6 (patch)
treed9a0e8ce5e15072a0d361612b061274e7f2bc63f /include/libssh/sftp.h
parenta8ce546f69e1d1d2425cdd3358b2083b0a6cebcb (diff)
downloadlibssh-11a6ed907d7d54a388ee1eb148803a326cee54f6.tar.gz
libssh-11a6ed907d7d54a388ee1eb148803a326cee54f6.tar.xz
libssh-11a6ed907d7d54a388ee1eb148803a326cee54f6.zip
Add sftp_symlink function.
Diffstat (limited to 'include/libssh/sftp.h')
-rw-r--r--include/libssh/sftp.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index 83c6f1de..8aede051 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -593,6 +593,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.
*
* @param sftp The sftp session handle.