Error in os.listdir in colab

FileNotFoundError Traceback (most recent call last)
in ()
----> 1 os.listdir(“C:\Users\Suprateek Chatterjee\images”)

FileNotFoundError: [Errno 2] No such file or directory: ‘C:\Users\Suprateek Chatterjee\images’

This is the error in colab but it works fine on Jupyter Notebook

hi as you are working over colab, the notebook is not locally hosted. So that’s why it wont be able to pick up the files locally from your pc. You have to either host these files. Either you can use dropbox, google drive or github links for that!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.