title: How to test a folder for new files using python
body: <p>How would you go about testing to see if 2 folders contain the same files, and then to be able to manipulate ONLY the file which is new.</p>
  
  <pre><code>A = listdir('C:/')
  B = listdir('D:/')
  
  If A==B
  </code></pre>
  
  <p>...</p>
  
  <p>I know this could be used to test if directories are different but is there a better way?
  And if A and B are the same, except B has one more file than A, how do i use just the new file?</p>
  
  <p>Thank you, i hope my question isnt confusing</p>