When using the samplefile create_replica_portal_item.py and when running it more than once the resulting zipfile is or can be partially overwritten.
I find it better to dynamically name the zipfile so everytime the script is run a new and complete zipfile is generated.
ArcRest or ArcRestHelper
Version or date of download
Bug or Enhancement
When using the samplefile create_replica_portal_item.py and when running it more than once the resulting zipfile is or can be partially overwritten. I find it better to dynamically name the zipfile so everytime the script is run a new and complete zipfile is generated.
Repo Steps or Enhancement details
I propose to introduce:
zipName = time.strftime('%Y%m%d_%H%M')
and change:
res = user.exportItem(title=TestExport, ...
to
res = user.exportItem(title=zipName, ...
So each time a complete zip is downloaded.