Recursive Directory Download/Upload for Putty SFTP
December 28, 2004, updated January 28, 2014
The latest version of PuTTY (0.63) has an mget and mput command for recursive upload and download. Which is ironic, because they rejected my patch because it should only do wildcard expansion. Oh well, psftp has what it needs now. Because there are security vulnerabilities fixed in older versions you should not use the version referenced by the patch below anymore.
I have had a lot of requests for recursive directory downloads and uploads with Putty's SFTP client. The current version (0.56) lacks this feature as well as wildcards. There are current plans to add in wildcard support (it's already been added for the SCP client), however, the developers don't wish to include mget and mput. So, I've just posted this patch. Just download the source, apply the patch, and you have a modified SFTP version with the new commands.
What the Patch Does and Does Not Do
- Adds new mget and mput commands which just use existing internal commands.
- mget and mput commands do not support restarts like the normal get and put commands.
Download the putty source, apply the patch or replace the PSFTP.C file with the this one, and compile.
8 Comments