aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/create_zip_file.d
blob: 5380744594f3755383817663533a96a3bde73947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
    }
  }
}