Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

zipfile partially updated #272

Closed kdhl closed 7 years ago

kdhl commented 8 years ago

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.

achapkowski commented 8 years ago

@kdhl - Thanks for the suggestion. We will take a look at this and get back to you.