title: FileNotFoundError: [Errno 2] No such file or directory | Mac + Google Colab
body: <p>I am working in a file on Google Colab and using the follow code: </p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  import os
  import cv2
  
  DATADIR="/Users/boris/PetImages"
  CATEGORIES= ["Dog","Cat"]
  
  for category in CATEGORIES:
    path = os.path.join(DATADIR, category) 
    for img in os.listdir(path):
      img_array = cv2.imread(os.path.join(path,img), cv2.IMREAD_GRAYSCALE)
      plt.imshow(img_array, cmap="gray")
      plt.show()
      break
  break
  </code></pre>
  
  <p>I am trying to import two folders on my mac. However I keep on getting the following error: </p>
  
  <pre><code>---------------------------------------------------------------------------
  FileNotFoundError                         Traceback (most recent call last)
  &lt;ipython-input-36-4ea265030377&gt; in &lt;module&gt;()
        9 for category in CATEGORIES:
       10   path = os.path.join(DATADIR, category)
  ---&gt; 11   for img in os.listdir(path):
       12     img_array = cv2.imread(os.path.join(path,img), cv2.IMREAD_GRAYSCALE)
       13     plt.imshow(img_array, cmap="gray")
  
  FileNotFoundError: [Errno 2] No such file or directory: "/Users/boris/PetImages/Dog"
  </code></pre>