From e5f13ceee54ff993bcc01d415cce006101222586 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sat, 1 Jan 2005 16:35:57 +0000 Subject: [PATCH] Now that rm, mkdir, and rmdir can operate on lots of files, make them more chatty like the other multiple-file commands. [originally from svn r5059] --- psftp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/psftp.c b/psftp.c index 54c3d793..904ddb88 100644 --- a/psftp.c +++ b/psftp.c @@ -1396,7 +1396,8 @@ int sftp_cmd_mkdir(struct sftp_command *cmd) printf("mkdir %s: %s\n", dir, fxp_error()); sfree(dir); ret = 0; - } + } else + printf("mkdir %s: OK\n", dir); sfree(dir); } @@ -1420,6 +1421,8 @@ static int sftp_action_rmdir(void *vctx, char *dir) return 0; } + printf("rmdir %s: OK\n", dir); + return 1; } @@ -1460,6 +1463,8 @@ static int sftp_action_rm(void *vctx, char *fname) return 0; } + printf("rm %s: OK\n", fname); + return 1; }