# ZipFileSystem

Class

Source: https://github.com/playcanvas/splat-transform/blob/b6424a5b3b929695fbaafe738a995adb1240d675/src/lib/io/write/zip-file-system.ts#L69

A file system that writes files into a ZIP archive.

Creates a ZIP file containing all written files. Used internally
for bundled output formats like .sog files. Archives past the classic
4 GiB / 65535-entry limits are written with zip64 records; smaller
archives use the classic layout only.

**Example**

```ts
const outputWriter = await fs.createWriter('bundle.zip');
const zipFs = new ZipFileSystem(outputWriter);

// Write files into the zip
const writer = await zipFs.createWriter('data.json');
await writer.write(jsonData);
await writer.close();

// Finalize the zip
await zipFs.close();
```
