title: Copying file from one directory to another directory in google colab
body: <p>my directory structure in google Colab is  following :
  under the directory  <code>'/content/drive/My Drive/Colab Notebooks/dogs_cats/train'</code> there  are images of cats and dogs, those are numbered as follow : cat.0, cat.1 and so on(the same  for dogs), i would like to write python codes  which will takes some portions of images  of cats and dogs  for train, test and validation folders, for instance  destination folder for train folders for cat is follow</p>
  
  <pre><code>'/content/drive/My Drive/Colab Notebooks/Dogs_cats/train/cats'
  </code></pre>
  
  <p>this folder is empty and i want to copy first 1000 picture of cat(in total i have 25000 image, 12500 for cat and 12500 for dog), so i wrote   following code from well know deep learning book</p>
  
  <pre><code>fnames = ['cat.{}.jpg'.format(i) for i in range(1000)]
  for fname in fnames:
      src = os.path.join('/content/drive/My Drive/Colab Notebooks/dogs_cats/train', fname)
      dst = os.path.join('/content/drive/My Drive/Colab Notebooks/Dogs_cats/train/cats', fname)
      shutil.copyfile(src, dst)
  </code></pre>
  
  <p>idea is very simple : first we create list of  cats names(cat.0.jpg,cat.1.jpg and so on, after that we  we connected file name to the source and destination and  we copied file using shutil library, the code runs without error, but there is no result(i checked destination folder several times), so what is the problem? please help me</p>