Using python to filter files on disk
<p>I am using below to remove files from disk.</p>

<pre><code>    def match_files(dir, pattern):
       for dirname, subdirs, files in os.walk(dir):
          for f in files:
             if f.endswith(pattern):
                yield os.path.join(dirname, f)

    # Remove all files in the current dir matching *.txt
    for f in match_files(dn, '.txt'):
       os.remove(f)
</code></pre>

<p>What I would to remove files from disk that "was not updated today." List the files from today. Check against to update list.   </p>
