Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Behavior of PuTTY pscp recursive directory copy different from that of scp?

342 views
Skip to first unread message

Michael Lee

unread,
Jul 2, 2009, 1:04:41 AM7/2/09
to
I have the two following files on PC (Windows XP SP3) and want to copy
the entire "temp" directory to a server (Red Hat Enterprise Linux 4)
using pscp from PuTTY 0.60:

C:\temp\dir1\a.txt
C:\temp\dir2\b.txt


Scenario 1: if there is a trailing slash (or backslash) in the source
path, only the content of "temp" is copied:

C:\>pscp -r temp/ mic...@192.168.1.11:/home/michael/test/

On the server:

/home/michael/test/dir1/a.txt
/home/michael/test/dir2/b.txt


Scenario 2: if there is no trailing slash in the source path, the
entire "temp" is copied:

C:\>pscp -r temp mic...@192.168.1.11:/home/michael/test/

On the server:

/home/michael/test/temp/dir1/a.txt
/home/michael/test/temp/dir2/b.txt


Doing a similar action from a Linux machine to the same server, with
or without the trailing slash, the result of scenario 2 is obtained.

Is this a bug in pscp, or is the effect of the -r switch
implementation-dependent?

0 new messages