Displaying 1 result from an estimated 1 matches for "do_recursive_download".
2003 Oct 01
1
3.7.1p2 sftp recurse patch
...recursive operations\n");
printf("rmdir path Remove remote directory\n");
printf("rm path Delete remote file\n");
printf("symlink oldpath newpath Symlink remote file\n");
@@ -430,6 +436,106 @@
}
static int
+do_recursive_download(struct sftp_conn *conn, char *remote_path,
+ char *local_path, int pflag)
+{
+ char *remote_tmp, *local_tmp;
+ int err, n;
+ SFTP_DIRENT **d;
+ extern int errno;
+
+ if (recursion && remote_is_dir(conn, remote_path)) {
+ if (!is_dir(local_path)) {
+ /* Create local directory */
+...