Now that rm, mkdir, and rmdir can operate on lots of files, make them more
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Jan 2005 16:35:57 +0000 (16:35 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Jan 2005 16:35:57 +0000 (16:35 +0000)
chatty like the other multiple-file commands.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5059 cda61777-01e9-0310-a592-d414129be87e

psftp.c

diff --git a/psftp.c b/psftp.c
index 54c3d79..904ddb8 100644 (file)
--- 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;
 }