Home

Awesome

zip-d

D binding for a portable, simple zip library.

Download

DUB

dub add zip

Example

import zip;

void main()
{
  zip_t* z = zip_open("/tmp/d.zip", 6, 'w');
  scope(exit) zip_close(z);

  zip_entry_open(z, "test");
  scope(exit) zip_entry_close(z);

  string content = "test content";
  zip_entry_write(z, content.ptr, content.length);
}

References

License

This repo is released under the MIT License.