# Net::SCP download recursive

**URL:** <https://www.ruby-forum.com/t/net-scp-download-recursive/166837>\
**Category:** Ruby\
**Created:** [April 30, 2009, 12:15am UTC](https://www.ruby-forum.com/t/net-scp-download-recursive/166837 "2009-04-30T00:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdenize](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a88e4f/32.png) [@pdenize](https://www.ruby-forum.com/u/pdenize)\
**Post date:** [April 30, 2009, 12:15am UTC](https://www.ruby-forum.com/t/net-scp-download-recursive/166837/1 "2009-04-30T00:15:36Z")

</div>

The recursive documentation suggests that  
:recursive - the remote parameter refers to a remote directory, which  
should be downloaded to a new directory named local on the local  
machine.

So I copied “/pub/temp” to “C:\TEMP”

If temp had one file /pub/temp/file, the copy results in a file at C:  
\TEMP\temp\file, shouldn’t it have been C:\TEMP\file

This is what command line scp would have done.
