You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the code-example from http://python-gitlab.readthedocs.io/en/latest/gl_objects/builds.html#streaming-example to download artifacts from gitlab. There is no error by doing this and the size of the zip-file is also correct. But it is a bad zipfile. If i open it with 7-zip, there is only one folder, one subfolder and a file with size "0". If I try to open it with the windows Explorer, the error "the compressed (zipped) folder ... is invalid." occured.
Is there any idea to solve this problem?
Activity
obelix05 commentedon Dec 20, 2016
the solution is to open the zip-file in binary-mode (yes i am using windows :) )
self._fd = open('artifacts.zip', 'wb')gpocentek commentedon Dec 20, 2016
Thank you for your feedback. I'll update the doc.