def write_file(self, blob, dest):
        with salt.utils.fopen(dest, 'w+') as fp_:
            blob.stream_data(fp_)
Using the blob object, write the file to the destination path
dataset/ETHPy150Open saltstack/salt/salt/utils/gitfs.py/GitPython.write_file