title: create a csv with the Items missing on the latest file
body: <p>I am trying to create a csv with the Items missing on  the latest file log.
  the comparing files are out.csv wish is a scan result, and the latest csv on the log folder.
  the idea will be not repeating the rows already used before as the out.csv will have always the full content</p>
  <pre class="lang-py prettyprint-override"><code>import os
  import csv
  import time 
  import glob
   
  list_of_files = glob.glob('./log/*.csv')
  latest_file = max(list_of_files, key=os.path.getctime)
  previous_file = max(list_of_files, key=os.path.getctime)
  vurious = datetime.now().strftime(&quot;%Y_%m_%d-%I:%M:%S_%p&quot;)+&quot;.csv&quot;
      
  with open(latest_file, 'r') as t1, open('out.csv', 'r') as t2:
          fileone = t1.readlines()
          filetwo = t2.readlines()
  
  with open('./log/'+vurious, 'w') as mail:
          for line in filetwo:
              if line not in fileone:
                  mail.write(line)
              else:
                  print(&quot;nothing to email&quot;)
  
  </code></pre>
  <p>I have not a clue why it never  show a consistent result
  I wonder if some one can help me with this
  thanks a lot.</p>