diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-25 11:35:33 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-25 11:55:33 +0200 |
commit | 5b8338d115f1839be12b0670a221d7c02a4c0e73 (patch) | |
tree | 02ba329b7173222db671ccc698d67d3371c6df77 /include/libssh/sftp.h | |
parent | e73cbbe18c2a7e91ebc479f2cde3733951ffe7e0 (diff) | |
download | libssh-5b8338d115f1839be12b0670a221d7c02a4c0e73.tar.gz libssh-5b8338d115f1839be12b0670a221d7c02a4c0e73.tar.xz libssh-5b8338d115f1839be12b0670a221d7c02a4c0e73.zip |
Add sftp_symlink function.
Diffstat (limited to 'include/libssh/sftp.h')
-rw-r--r-- | include/libssh/sftp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 043edddf..cb5c1af5 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -593,6 +593,19 @@ int sftp_chmod(SFTP_SESSION *sftp, const char *file, mode_t mode); int sftp_utimes(SFTP_SESSION *sftp, const char *file, const struct timeval *times); /** + * @brief Create a symbolic link. + * + * @param sftp The sftp session handle. + * + * @param target Specifies the target of the symlink. + * + * @param dest Specifies the path name of the symlink to be created. + * + * @return 0 on success, < 0 on error with ssh and sftp error set. + */ +int sftp_symlink(SFTP_SESSION *sftp, const char *target, const char *dest); + +/** * @brief Canonicalize a sftp path. * * @param sftp The sftp session handle. |