title: Replace folder in file system using Swift
body: <p>How can I copy and paste the entire content of a folder using Swift on a OS X? If the destinationPath already contains the folder, than it should replace it.</p>
  
  <p>I tried </p>
  
  <pre><code>let appSupportSourceURL = NSURL(string: appSupportSourcePath)
          let appSupportDestinationURL = NSURL(string: appSupportDestinationPath+"/"+appSupportFileName)
  
          if (fileManager.isReadableFileAtPath(appSupportSourcePath)){
              do {
              try fileManager.copyItemAtURL(appSupportSourceURL!, toURL: appSupportDestinationURL!)}
              catch{   
              }
          }
  </code></pre>
  
  <p>but I realised, that this only works for files. I am trying to replace a whole folder.</p>