Writes the files to the specified directory. File names are based on the original resource names.
(self, out_dir: str)
| 143 | return self._files[name] |
| 144 | |
| 145 | def write_to(self, out_dir: str) -> None: |
| 146 | """Writes the files to the specified directory. File names are based on |
| 147 | the original resource names. |
| 148 | """ |
| 149 | for name, data in self._files.items(): |
| 150 | with open(os.path.join(out_dir, name), "wb") as fp: |
| 151 | fp.write(data) |
| 152 | |
| 153 | |
| 154 | @dataclass |