title: Traceback (most recent call last): (cannot copy tree '%s': not a directory" % src)
body: <p>I want to program a small script using python which goes into my google drive folder and copies all the files there to a folder with the current date. So fromDirectory is obviously the directory where my program should copy the files from and todirectory is a directory on a extern hdd. I already check if the paths are correct and I'm sure that they are. Unfortunately a error raised:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Michael\Desktop\test.py&quot;, line 13, in &lt;module&gt;
      copy_tree(fromDirectory, toDirectory)
    File &quot;C:\Users\Michael\AppData\Local\Programs\Python\Python37\lib\distutils\dir_util.py&quot;, line 124, in copy_tree
      &quot;cannot copy tree '%s': not a directory&quot; % src)
  distutils.errors.DistutilsFileError: cannot copy tree 'C:/Users/Michael/Desktop/Google Drive': not a directory
  </code></pre>
  <p>Code:</p>
  <pre><code>import time
  import sys
  import shutil
  from distutils.dir_util import copy_tree
  import os
  from datetime import datetime
  
  today = datetime.now()
  
  fromDirectory = &quot;C:/Users/Micheal/Desktop/Google Drive&quot;
  toDirectory = &quot;S:/&quot; + today.strftime('%d%m%Y') 
  
  copy_tree(fromDirectory, toDirectory)
  </code></pre>
  <p>Hope for help!</p>
  <p>EDIT:
  <strong>I was stupid:</strong></p>
  <p>I wrote my program on PC1 and now tested it on PC2, so I didn't notice that there really was a Google Drive folder on the desktop of PC1 but not on the desktop of PC2 (just a shortcut to the Google Drive folder). For PC2 the correct path is &quot;C:/Users/Michael/Google Drive&quot;.</p>