From 8ce6bd3459ed379337a709fa5d32b05021c7280f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 25 Jul 2009 11:54:21 +0200 Subject: Add sftp_readlink function. --- include/libssh/sftp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index cb5c1af5..de6e5675 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -605,6 +605,17 @@ int sftp_utimes(SFTP_SESSION *sftp, const char *file, const struct timeval *time */ int sftp_symlink(SFTP_SESSION *sftp, const char *target, const char *dest); +/** + * @brief Read the value of a symbolic link. + * + * @param sftp The sftp session handle. + * + * @param path Specifies the path name of the symlink to be read. + * + * @return The target of the link, NULL on error. + */ +char *sftp_readlink(SFTP_SESSION *sftp, const char *path); + /** * @brief Canonicalize a sftp path. * -- cgit