title: Copy folder using Copy-Item - different behaviour
body: <p>I want copy whole folder to another folder using <code>Copy-Item</code>.</p>
  
  <p>My source folder <code>c:\base</code> contains some files:</p>
  
  <pre><code>├───base    
  │       file1.txt
  │       file2.txt
  </code></pre>
  
  <p>I use the following command:</p>
  
  <p><code>Copy-Item c:\base c:\target -recurse</code></p>
  
  <p>if the target folder (<code>c:\target</code>) exists, the command copies source folder exactly as I want:</p>
  
  <pre><code>├───target
  │   └───base    
  │           file1.txt
  │           file2.txt
  </code></pre>
  
  <p>If the target folder doesn't exist, the command creates target folder (exactly as I want), <strong>but now it copies only the content of the source folder</strong> (without the <code>base</code> folder):</p>
  
  <pre><code>├───target    
  │       file1.txt
  │       file2.txt
  </code></pre>
  
  <ul>
  <li>Why does it happen?</li>
  <li>How can I use this copy command (additional keys?) without create the target folder before?</li>
  </ul>