Having some issues getting the arcpy.Copy_management to work. Essentially I simply would like to be able to have a user select a folder which contains multiple shapefiles and copy them to another user selected fodler without hard coding the locations and filenames. Both folders would be obtained by the GetParametersAsText() function.
At this stage all I want to do is get the copy code correct and make a copy of each of the datasets in the dataset folder. I may need to check for differing things such as spatialReference but for now getting the copy code sorted would be great!
I have set my workspace to the dataset directory using:
arcpy.env.workspace = datasetFolder
datasetFolder = arcpy.GetParameterAsText(0)
outputFolder = arcpy.GetParameterAsText(1)
The datasetFolder contains 3 shapefiles and I'm a bit lost on the parameters to use to copy each of them to the outputFolder directory. It surely isn't as simple as:
arcpy.Copy_management(datasetFolder, outputFolder)
All the files have been put into a list called inputFC.
Should the above Copy_management code work or is there a particular way to code the copy line so each files gets copied over?