Closed shadinaif closed 3 years ago
Thanks for the PR @shadinaif! If I understand correctly, the gcloud backend needs to access the size of the individual files stored in the zipfile, but the file-like objects created by open
do not have a seek
method: https://docs.python.org/3.6/library/zipfile.html#zipfile.ZipFile.open
At first I thought that this would create an issue with large uploaded zip-files, but in fact only the individual files stored in the zipfile will be uncompressed this way.
Thank you for the fast response @regisb . I've applied the requested code change
We are facing the following error because files are uploaded to Google Storage
This PR is to fix it by avoiding partial reads that need
seek
operation