Skip to main content
corrected paths, made link more direct, improved formatting
Source Link
  1. Create a new Google Colaboratory NotebookCreate a new Google Colaboratory Notebook
  2. Mount your Google Drive:-
    from google.colab import drive
    drive.mount('/content/gdrive')
    
  3. Copy via shell:-
    !cp -r '/gdrive/My DriveMyDrive/src/.' '/gdrive/My DriveMyDrive/dest'
    
  1. Create a new Google Colaboratory Notebook
  2. Mount your Google Drive
    from google.colab import drive
    drive.mount('/gdrive')
    
  3. Copy via shell
    !cp -r '/gdrive/My Drive/src/.' '/gdrive/My Drive/dest'
    
  1. Create a new Google Colaboratory Notebook
  2. Mount your Google Drive:-
    from google.colab import drive
    drive.mount('/content/gdrive')
    
  3. Copy via shell:-
    !cp -r '/gdrive/MyDrive/src/.' '/gdrive/MyDrive/dest'
    
Source Link
Woranov
  • 81
  • 1
  • 2

  1. Create a new Google Colaboratory Notebook
  2. Mount your Google Drive
    from google.colab import drive
    drive.mount('/gdrive')
    
  3. Copy via shell
    !cp -r '/gdrive/My Drive/src/.' '/gdrive/My Drive/dest'