Is there a way to rename the root of my drive in google collab

Viewed 3006

Iam trying to run some shell scripts for training a model in google colab and trying to mount google drive with below code:

from google.colab import drive
drive.mount('/content/drive')

and this is the folder structure that's created.

enter image description here

Is there any way I could rename the "My Drive" to "MyDrive" and I am facing a lot of issues while running shell scrips.

1 Answers

You can create a symlink

!ln -s "/content/drive/My Drive" /gdrive
Related