unzip and rename

1568
0
02-26-2013 06:41 AM
meriyalootka
New Contributor III
I,m looking for a script that can unzip a zipped shapefile and rename it to a new name.

Problem: The default unzip.py just unzip a zipped file and don't change it's name. This restriction cause all clients have to rename thier shapefiles like my predefined name. For example If my shapefile's name is spatial.shp and I zipped it for running my model locally, my clients should change thier shape files to spatial.shp
Regards
0 Kudos
0 Replies