title: Why does Powershell v2 Copy-Item seem to be copying a directory instead of individual items?
body: <p>I'm a Powershell novice, and am running what I consider to be a fairly simple script to copy files from the network to my local machine. </p>
  
  <pre><code>$htmPath = "\\ServerPath\foo\WebHelp\"
  $dstPath = "C:\LocalPath\foo\WebHelp\"
  Copy-Item $htmPath $dstPath -recurse -force
  </code></pre>
  
  <p>However, all my data lands in <code>C:\LocalPath\foo\WebHelp\Webhelp\</code>; it appears that my copy is creating a new instance of the <code>WebHelp</code> directory instead of copying the contents. Is that normal? Why is it happeneing? How do I need to modify my script to ONLY copy the contents of a folder, and not the folder name?</p>
  
  <p>For instance, if I only want to copy <code>files</code> NOT <code>\WebHelp\files</code> from <code>\\serverpath\foo\WebHelp\files</code>. I have been unsuccessful with various iterations of adding or deleting an ending <code>\</code> and using <code>copy</code> instead of <code>copy-item</code>. What is the proper syntax to eliminate the parent folder name from appending to the path during a copy? </p>