diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-04-12 15:23:23 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | da0f051e1aced4fa1fd5cd13c0548279bf04b2a0 (patch) | |
tree | 3c74421c4ce35e28e93512eb01606219e37e0dfb /src/sdp/create_zip_file.d | |
parent | start work on block outputs (diff) |
0.13.9 sisupod & epub3, zipped output
Diffstat (limited to 'src/sdp/create_zip_file.d')
-rw-r--r-- | src/sdp/create_zip_file.d | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sdp/create_zip_file.d b/src/sdp/create_zip_file.d new file mode 100644 index 0000000..6ea55f4 --- /dev/null +++ b/src/sdp/create_zip_file.d @@ -0,0 +1,16 @@ +template createZipFile() { + import std.file; + import std.outbuffer; + import std.string; + import std.zip; + void createZipFile( + string zip_file_name, + void[] compressed_zip_data, + ) { + try { + write(zip_file_name, compressed_zip_data); + } catch (ZipException ex) { + // Handle Errors + } + } +} |