title: copy folder from server to local machine in ubuntu
body: <p>I have a folder in my server and I tried to copy it in my local machine like:</p>
  
  <pre><code>scp my_username@remotehost.com:/path/to/some_folder /my/local/directory
  </code></pre>
  
  <p>Inside some_folder there is a folder that I want to copy.
  When I run this command it says </p>
  
  <pre><code>/path/to/some_folder/: not a regular file
  </code></pre>
  
  <p>How can I copy a folder from server to my local machine.
  I am using ubuntu 14.04</p>