pythonartificial-intelligencegoogle-colaboratorydrive

Google colab Could not find directory (My Drive)


Error when i want to use a file from driv in colab

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

and them

INPUT_DIRECTORY='/content/drive/My Drive/deepcumbia/data/xml'

error:

Could not find directory /content/drive/My/

Solution

  • Escape the space.

    INPUT_DIRECTORY='/content/drive/My\ Drive/deepcumbia/data/xml'