diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-25 11:54:21 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-25 11:55:42 +0200 |
commit | 8ce6bd3459ed379337a709fa5d32b05021c7280f (patch) | |
tree | c14c8e621eceda4b7b3e26da820312c8a70e7ea9 /include/libssh/sftp.h | |
parent | 5b8338d115f1839be12b0670a221d7c02a4c0e73 (diff) | |
download | libssh-8ce6bd3459ed379337a709fa5d32b05021c7280f.tar.gz libssh-8ce6bd3459ed379337a709fa5d32b05021c7280f.tar.xz libssh-8ce6bd3459ed379337a709fa5d32b05021c7280f.zip |
Add sftp_readlink function.
Diffstat (limited to 'include/libssh/sftp.h')
-rw-r--r-- | include/libssh/sftp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index cb5c1af..de6e567 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -606,6 +606,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. * * @param sftp The sftp session handle. |