Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 840 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 840 Bytes

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.