aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/create_zip_file.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/create_zip_file.d')
-rw-r--r--src/sdp/create_zip_file.d16
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
+ }
+ }
+}