neonmodder123/zipmgr — reverse-engineered prompt
Reverse engineered prompt
Build me a small pure Swift package for working with zip files. I want to be able to open a .zip from data on disk, read the archive, list everything inside with each file path and uncompressed size, look up a specific entry by its path, and extract that file’s contents as Data. I also want the reverse, a simple way to take a folder and create a new zip archive from it.
Please make it feel lightweight and easy to drop into another Swift project with one import. The API should stay simple and friendly, with an archive type that exposes its entries, lets me access an item by name, and has an extract method, plus a helper function for creating an archive from a directory. Add a clear README with short usage examples so someone can copy and paste the basics right away. Include sensible error handling and a few basic tests so it feels like a real reusable library. If you need to, look up current Swift docs online.
Want more depth? Deep Reverse