Convenience alias that simplifies the interface for users
Filter class which can be used by the Archive class to compress/decompress files into a .gz format.
See Source File
http://github.com/rcythr/archive
Filter class which can be used by the Archive class to compress/decompress files into a .gz format.
The only current available alias which uses this filter is the TarGzArchive.
Reading Usage:
import archive.targz; import std.stdio; auto archive = new TarGzArchive(std.file.read("my.tar.gz"); foreach(file; archive.files) { writeln("Filename: ", file.path); writeln("Data: ", file.data); }
Writing Usage:
import archive.targz; auto archive = new TarGzArchive(); auto file = new TarGzArchive.File("languages/awesome.txt"); file.data = "D\n"; // can also set to immutable(ubyte)[] archive.addFile(file); std.file.write("lang.tar.gz", cast(ubyte[])archive.serialize());
Copyright Richard W Laughlin Jr. 2014—2016
Type that implements the TarGz Filter used with the Archive template.