Reputation: 1547
I am trying to load some data from google drive to my colab notebook, but I am getting an empty list.
Code:
from google.colab import drive
drive.mount('/content/drive')
import glob
import os
test_path = '/content/gdrive/My Drive/ML/data/cifar-100/test'
#path = os.path.join(test_path, 'class1', '*.jpg')
#path = os.path.join(test_path, 'class1', '*g')
path = os.path.join(test_path, 'class1', '*.*')
files = glob.glob(path)
len(files)
Output: 0
Data
Can anybody tell me why it’s not loading, everything seems to be fine
Upvotes: 4
Views: 887