I have created the zip file using linux zip command and uploaded it in my google drive. When I tried to download and unzip the zipped file using curl and unzip command (using a bash file), it gives me the following error.
Archive: pretrained_models.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of pretrained_models.zip or
pretrained_models.zip.zip, and cannot find pretrained_models.zip.ZIP, period.
Can anyone suggest any workaround to fix this issue?
In case if anyone wants to reproduce the error, I am sharing the .sh
file.
#!/bin/bash
pretrained='https://drive.google.com/uc?export=download&id=0B8ZGlkqDw7hFSm1MQ2FDVTZCTjA'
# download pretrained models.
curl -o pretrained_models.zip $pretrained
unzip pretrained_models.zip
rm pretrained_models.zip
The file is publicly shared. For sanity check, you can download it from here.
N.B. I have seen related posts in other community of SO and some of them suggested to use different file extension but I want to stick to zip file.