Using Python Scripts to work on Gdrive via Google Co-Lab
I was looking for a way to copy shared folders in gdrive.
Google requires you to download first and then copy - which is of course lot of work and lot of
broadband DATA
- someone suggested you could do this through
google colab.
- Create a new Google Colaboratory Notebook
- Mount your Google Drive
from google.colab import drive drive.mount('/gdrive')
- Copy via shell
!cp -r '/gdrive/My Drive/src/.' '/gdrive/My Drive/dest'
I just had exactly the same issue. And I copied everything successfully via this open-source service: https://github.com/ericyd/gdrive-copy
After you finish your copy, do remember to revoke your granted permission to this app.
Comments
Post a Comment