3

I want to access the files in my GCP bucket from Colab. I followed these instructions

As you can see from the screen shots, there is nothing in the folder after mounting. What am I missing? The Data folder in my bucket is full of data.

enter image description here

enter image description here

enter image description here

Chris32
  • 4,716
  • 2
  • 18
  • 30
jjschuh
  • 187
  • 1
  • 2
  • 8

2 Answers2

5

Turns out you can't mount the bucket name + a path within the bucket. Removing the /Data/ after the name of the bucket led to a successful mount. So since my bucket name is hellonearth, the command is just:

!gcsfuse --implicit-dirs hellonearth myfolder
ecraig12345
  • 2,328
  • 1
  • 19
  • 26
jjschuh
  • 187
  • 1
  • 2
  • 8
1

You are using the commands in a wrong way

after !apt -qq install gcsfuse

run:

!mkdir folderOnColab
!gcsfuse gs://folderOnBucket folderOnColab

Then runt !ls instead of just ls

Chris32
  • 4,716
  • 2
  • 18
  • 30