Home > database >  Python zipfile just creates empty folders with no content
Python zipfile just creates empty folders with no content

Time:08-07

I am working on Google colab notebook. I have downloaded datasets from Kaggle and it is in zip format. I have used python zipfile function but I don't see it working. Looks like it just created empty folders but I don't see contents in it. However, the original zip does have content in it.

Screenshot: enter image description here

Update: Based on @Hanna answer: enter image description here

CodePudding user response:

In GoogleColab I always use

!unzip "test.zip"

you can use Linux commands by adding a "!" to the beginning of the cell, for more info visit examples

Update

unzip zip-file-name.zip -d /path/to/directory

  • Related