title: PowerShell Copy-Item what I'm doing wrong?
body: <p>Given the dir structure:</p>
  
  <pre><code>x\Code
  x\Script\Backup.ps1
  </code></pre>
  
  <p>Backup.ps1 contains:</p>
  
  <pre><code>$BackupDirectoy       = "..\Backup"
  $CodeDirectory        = "..\Code"
  
  function BackupCurrentVersion()
  {
    New-Item $BackupDirectoy -type directory -force
    Copy-Item $CodeDirectory -destination $BackupDirectory -recurse
  }
  
  BackupCurrentVersion
  </code></pre>
  
  <p>I'm doing something wrong because Code gets copied in x\Script\Code instead of x\Backup\Code</p>
  
  <p>What is the problem?</p>