title: Unable to copy or move a file using python shutil
body: <pre><code>import shutil
  import os
  
  source = os.listdir("report")
  destination = "archieved"
  
  for files in source:
      if files.endswith(".json"):
          shutil.copy(files, destination)
  </code></pre>
  
  <p>I have the file named, '<code>a.json</code>' inside the report folder <code>report/a.json</code>; however, the file is not moved/copied to the target folder</p>
  
  <p><strong>Console Error:</strong></p>
  
  <pre><code>*** FileNotFoundError: [Errno 2] No such file or directory: 'a.json'
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/e5vbQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e5vbQ.png" alt="enter image description here"></a></p>