aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/create_zip_file.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-05-09 13:01:06 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit60d6073bcfc4fa91253428094813de0dac41a2b4 (patch)
treecef8e223469724d9e42dea81d6ded5ffc75a9be2 /src/sdp/output/create_zip_file.d
parentmodules, collective imports (diff)
0.16.0 files/modules re-arrangeddoc-reform_v0.0.16
Diffstat (limited to 'src/sdp/output/create_zip_file.d')
-rw-r--r--src/sdp/output/create_zip_file.d17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sdp/output/create_zip_file.d b/src/sdp/output/create_zip_file.d
new file mode 100644
index 0000000..5380744
--- /dev/null
+++ b/src/sdp/output/create_zip_file.d
@@ -0,0 +1,17 @@
+module sdp.output.create_zip_file;
+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
+ }
+ }
+}