Displaying 1 result from an estimated 1 matches for "local_tmp".
2003 Oct 01
1
3.7.1p2 sftp recurse patch
...m 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 */
+			err = mkdir(local_path, 0777);
+			if (err == -1) {
+				error("Couldn't create local directory \"%...