diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-25 11:54:21 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-25 12:34:25 +0200 |
commit | a1c7dd99bedf7a55484e7ed226af386f6f005a0b (patch) | |
tree | 198ae74e9411f80a5ba74403ce1db0c413998adb /include | |
parent | 11a6ed907d7d54a388ee1eb148803a326cee54f6 (diff) | |
download | libssh-a1c7dd99bedf7a55484e7ed226af386f6f005a0b.tar.gz libssh-a1c7dd99bedf7a55484e7ed226af386f6f005a0b.tar.xz libssh-a1c7dd99bedf7a55484e7ed226af386f6f005a0b.zip |
Add sftp_readlink function.
Diffstat (limited to 'include')
-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 8aede051..83fb40c3 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. |