I am trying to access a dataset (and count the number of images) saved in my google drive through the following code in jupyter notebook, but I keep getting this error. I cannot use google colab for security reasons.The dataset has 17 folders and in every folder, there are more than 200 images so I cannot download it either.
code:
dataset='https://drive.google.com/drive/folders/16BXzy3nAGRJAH5j23Z38eG3npsSIqHEf?usp=sharing'
data_dir = pathlib.Path(dataset)
image_count = len(list(data_dir.glob('*/*.jpg')))
print(image_count)
error:
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'https:\\drive.google.com\\drive\\folders\\16BXzy3nAGRJAH5j23Z38eG3npsSIqHEf?usp=sharing'