From 60d6073bcfc4fa91253428094813de0dac41a2b4 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 9 May 2017 13:01:06 -0400 Subject: 0.16.0 files/modules re-arranged --- src/sdp/output/create_zip_file.d | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/sdp/output/create_zip_file.d (limited to 'src/sdp/output/create_zip_file.d') 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 + } + } +} -- cgit v1.2.3