def extract_to_disk(self):
        archive_name, extension = os.path.splitext(os.path.basename(self.file.name))
        if not os.path.isdir(os.path.join(os.getcwd(), archive_name)):
            os.mkdir(archive_name)
        os.chdir(archive_name)
        for filename, data in self.extract().items():
            f = open(filename, 'wb')
            f.write(data)
            f.close()
Extract all files and write them to disk.
dataset/ETHPy150Open Blizzard/heroprotocol/mpyq/mpyq.py/MPQArchive.extract_to_disk