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?