Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def md5_for_file(path, block_size=2**20):
    md5 = hashlib.md5()
    with open(path) as f:
        while True:
            data = f.read(block_size)
            if not data:
                break
            md5.update(data)
    return md5.hexdigest()
        


src/v/a/Vaporfile-HEAD/vaporfile/website.py   Vaporfile(Download)
                else:
                    #File already exists, check if it's changed.
                    local_md5 = util.md5_for_file(file_path)
                    if local_md5 != s3_key.etag.replace("\"",""):
                        #File has changed