title: Failed to copy gdb in ArcPy
body: <p>I am trying to archive a geodatabase into an Archive folder. The geodatabase is successfully copied into the Archive folder, but I receive an error code that prohibits the rest of my code from running. The error message is: </p>
  
  <pre><code>ExecuteError: ERROR 000260: Failed to copy C:\\Folder\\Geodatabase.gdb into C:\Folder\Archive\Archived_20161028.gdb
  Failed to execute (Copy).
  </code></pre>
  
  <p>As mentioned, when I look in the Archive folder, the Geodatabase is stored there as Archived_20161028.gdb. I am not sure how to continue to run my code or why the error message is popping up. </p>
  
  <pre><code>import arcpy
  
  import os 
  
  Archive = r'C:\Folder\Archive' 
  if not os.path.exists(Archive):
      os.makedirs(Archive)
  
  gdb=r'C:\\Folder\\Geodatabase.gdb'
  shp="C:\Folder\Geodatabase.gdb\Shapefile"
  
  
  if len(gdb) &gt; 0:
      print gdb
      fcArchived = os.path.join(Archive, 'Archived_{}.gdb'.format(time.strftime('%Y%m%d')))
      print fcArchived
      arcpy.Copy_management(gdb, fcArchived)
  
  arcpy.Delete_management(gdb)
  
  arcpy.CreateFileGDB_management (r'C:\\Folder',"Geodatabase.gdb")
  </code></pre>