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