Add sftp_readlink function.

This commit is contained in:
Andreas Schneider
2009-07-25 11:54:21 +02:00
parent 5b8338d115
commit 8ce6bd3459
2 changed files with 85 additions and 0 deletions

View File

@@ -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.
*