Sunday, January 5, 2020

Unzipping inside GDrive

To extract a zip file in google drive itself, we can use google colab to extract zip files inside google drive:


1. Open Google Colaboratory
2. Mount Google Drive on Colab
3. from google.colab import drive
4. drive.mount('/gdrive')
5. Add autherize code in colab to access gdrive
6. unzip file like this
!unzip '/gdrive/My Drive/[filename].zip' 
          -d '/gdrive/My Drive/Destination/'