title: Powershell Copy-Item not copying
body: <p>I have to following directory structure: </p>
  
  <pre><code>fold1
   - file1
   - file2
  
  fold2
   - file1
  </code></pre>
  
  <p>I am trying to test to see if the folders are identical, and if they arent, copy fold1 to fold2 and overwrite any different files. This is what I have tried:</p>
  
  <pre><code>$fold1 = Get-ChildItem -Recurse -path C:\fold1
  $fold2 = Get-ChildItem -Recurse -path C:\fold2
  $isDif = Compare-Object $fold1 $fold2
  if ($isDif -eq $null) {
      Write-Host "Folders Are Identical"
  }
  else {
      Write-Host "Folders Are Different"
      Copy-Item -Path $fold1.FullName -Destination $fold2.FullName -Recurse -Force
  }
  </code></pre>
  
  <p>But when I run it, it says the folders are different, but it doesn't copy anything over. No errors or anything, it just doesn't work. </p>