title: How to resolve python error NotADirectoryError: [Errno 20] Not a directory:
body: <p>When I define data_batch_1_dir and provide a path.</p>
  <pre><code>import os
  data_batch_1_dir = os.path.join(&quot;/content/drive/MyDrive/cifar_data/cifar dataset/data_batch_1&quot;)
  </code></pre>
  <p>then the error shows in the following line that this is not a directory. Please help to resolve it?<br />
  ERROR:</p>
  <pre><code>print('total training batch1 images:', len(os.listdir(data_batch_1_dir)))
  </code></pre>