1

Using puttys pscp -r folder\to\copy\* user@server:/path/to/copy/folder/to it only copies the content of path\to\copy\folder\* and does not include the "main" folder which the subfiles and subdirectories are in.

What I need is that the folder itself is also copied such that I get a folder with the same name as the one I copied with the content inside.

I know I just can create a parent-folder for the one I want to copy and parse that as the path\to\copy\folder\* but that is not the case

CutePoison
  • 4,679
  • 5
  • 28
  • 63

1 Answers1

8

Just use pscp -r folder\to\copy user@server:/path/to/copy/folder/to.

keineahnung2345
  • 2,635
  • 4
  • 13
  • 28
  • 1
    Note that the backslash after the original folder's name *needs to be omitted*. If you add a backslash, the content of the folder is copied, rather than the folder itself. – Fato39 Apr 01 '21 at 13:00