title: Debugging & possible causes of distutils.dir_util.copy_tree() doesn't exist or not a regular file
body: <p>I have some simple code to import a csv file of Windows File Paths e.g.<code>"C:/Folder/SubFolder/folder1"</code> to copy the contents and any subfolders to a new directory.</p>
  
  <p>When I run the code I get about 1/3 of my sample returning <strong><code>doesn't exist or not a regular file</code></strong> while the other are copied successfully. </p>
  
  <p>The files that are causing problems are either .docx or .pdf but equally as many were copied over successfully.</p>
  
  <p><strong>What could be causing this issue on a local Windows 10 machine and how do I debug it further?</strong></p>
  
  <pre><code>for Submission in FilePaths.itertuples():
      Create the Path
      FolderName = Submission.Group+"-"+Submission.ID+"-"+Submission.FirstName+Submission.Surname
      DestinationPath =DestinationBasePath + Submission.Category+"\\"+ Submission.Value+"\\"+FolderName
      #Copy the source folder tree and contents to the destination 
      try:
          copy_tree(Submission.FullFilePath, DestinationPath,verbose=1)
      except Exception as Ex:
      print(Ex)
      os.listdir(Submission.FullFilePath)
  </code></pre>