aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/create_zip_file.d
blob: ea7e5f6d1750d343626bbaea8187eac5c191e233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module doc_reform.io_out.create_zip_file;
template createZipFile() {
  import
    std.file,
    std.outbuffer,
    std.string,
    std.zip;
  @safe void createZipFile(
    string zip_file_name,
    void[] compressed_zip_data,
  ) {
    try {
      write(zip_file_name, compressed_zip_data);
    } catch (ZipException ex) {
      // Handle Errors
    }
  }
}