aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/create_zip_file.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-11-16 12:16:08 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-11-22 09:54:26 -0500
commit2731b33fe2d05fe3ebc3e2f98d39eacf7295d1e4 (patch)
treee10aa1e0685d03deeb62c36e643e9300e144990e /src/doc_reform/io_out/create_zip_file.d
parentname changes (diff)
module & src renamingdoc-reform_v0.9.0
Diffstat (limited to 'src/doc_reform/io_out/create_zip_file.d')
-rw-r--r--src/doc_reform/io_out/create_zip_file.d17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/doc_reform/io_out/create_zip_file.d b/src/doc_reform/io_out/create_zip_file.d
new file mode 100644
index 0000000..09b481a
--- /dev/null
+++ b/src/doc_reform/io_out/create_zip_file.d
@@ -0,0 +1,17 @@
+module doc_reform.io_out.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
+ }
+ }
+}