Spark
Spark

Reputation: 2485

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

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.

Upvotes: 5

Views: 3548

Answers (1)

korakot
korakot

Reputation: 40928

You can create a symlink

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

Upvotes: 6

Related Questions