]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - psftp.c
I've decided that trying to do wildcards in PSFTP as a special case
authorSimon Tatham <anakin@pobox.com>
Thu, 30 Dec 2004 13:51:37 +0000 (13:51 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 30 Dec 2004 13:51:37 +0000 (13:51 +0000)
commitbf94aecd95271ed16a79d378e58b701f64554100
treecd477ea90bc3394e55dfa41f7913672c9df277fd
parentf494d60e06f19600f6354160e18b248f7bbcb0b5
I've decided that trying to do wildcards in PSFTP as a special case
of directory recursion was a strategic error: it obfuscates
sftp_{get,put}_file(), and also it makes it very hard to handle
subdirectory wildcards such as `foo/*'. Accordingly, here's a
completely different approach, in which sftp_{get,put}_file() are
still responsible for directory recursion, but wildcards are
expanded in sftp_general_{get,put}() before being passed thereto.
Subdirectory wildcards are now handled consistently across Unix,
Windows and the remote server.

[originally from svn r5045]
psftp.c