for filename in filenames:
    filepath = os.path.join(dirpath, filename)
f = open(filepath, 'rb')
for chunk in iter(lambda : f.read(65536), ''):
    hash.update(chunk)
return hash.hexdigest()
Determine whether any files have been added, removed, or modified in a directory