def createsha(directory):
    """Walk through a Directory creating Sha Hashes of each file path"""
    for root, dirs, files in os.walk(str(directory)):
        for name in files:
            filepath = os.path.join(root, name)
            value = sha.new(filepath).hexdigest()
            print value
Walk through a Directory creating Sha Hashes of each file path
recipes/Python/576716_Create_SHA_Hashes_of_a_Directory/recipe-576716.py