I am trying to write a python script that would allow me to download data and copy it to a file geodatabase. The script currently downloads and extracts a zip folder from a FTP site. Ideally I would like my script to then copy the extracted shapefile into a geodatabase. The workspace in which the data is extracted remains constant. Where as the name of the data that is downloaded and extracted is variable. How can I reference the downloaded data regardless of its name for the input argument of the CopyFeature tool?
arcpy.env.workspace = r'C:\Users\Desktop\ExtractedData'arcpy.CopyFeatures_management( downloaded shapefile, 'C:\Users\Desktop\Test.gdb')
أكثر...
arcpy.env.workspace = r'C:\Users\Desktop\ExtractedData'arcpy.CopyFeatures_management( downloaded shapefile, 'C:\Users\Desktop\Test.gdb')
أكثر...