From a1c7dd99bedf7a55484e7ed226af386f6f005a0b 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 8aede051..83fb40c3 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