title: Colab: No such file or directory
body: <p>I just found a problem about directory making on Colab.</p>
  
  <ol>
  <li><p>First, I checked the current working directory:</p>
  
  <p>import os</p>
  
  <p>!pwd</p>
  
  <blockquote>
    <blockquote>
      <p>/content/</p>
    </blockquote>
  </blockquote></li>
  <li><p>Then, I created a sub-directory and checked it as follows.</p>
  
  <p>data_path = '/content/kaggle_original_data_cats_dogs'
  !mkdir data_path
  !ls /content/</p>
  
  <blockquote>
    <blockquote>
      <p>adc.json  datalab  data_path  sample_data  sampleSubmission.csv  train.zip</p>
    </blockquote>
  </blockquote></li>
  </ol>
  
  <p>Here, we can see that data_path is the third member of /content/.</p>
  
  <ol start="3">
  <li><p>However, when I tried to change the working directory to data_path, I got:</p>
  
  <p>os.chdir(data_path)</p>
  
  <blockquote>
    <blockquote>
      <p>FileNotFoundError: [Errno 2] No such file or directory: '/content/kaggle_original_data_cats_dogs'</p>
    </blockquote>
  </blockquote></li>
  </ol>
  
  <p>So far...I can't figure out what just happened? Is there anything wrong with the lines above?</p>