title: MD5 Hashing all files in a directory
body: <p>I am trying to make a program that loops over all my files in a directory and make then all md5 hash codes.</p>
  <pre><code>import hashlib, os, sys
  for root, dirs,files in os.walk(&quot;C:\Users\Matt\AppData\NewFolder&quot;, topdown=True):
      for name in files:
          #print(os.path.join(root, name))
  FileName = (os.path.join(root, name))
  
  hasher = hashlib.md5()
  with open(str(FileName), 'rb') as afile:
      buf = afile.read()
      hasher.update(buf)
  print(hasher.hexdigest())
  </code></pre>
  <p>If someone would be willing to help me out that would be great.</p>