Collect files to cpio and compress

Cpio purpose

Cpio format is similar to tar. Cpio archive allows you to combine several files into a single file. You may compress the joint file, too.

Collecting without compression

There is a sample of collecting two files into a cpio archive.

Compressing cpio archive

In Unix-like operating systems cpio utility allows compressing cpio archive to gzip on creation. Aspose.Zip provides similar functionality with the SaveGzipped method.

Nowadays xz utility has become popular in Linux and Unix. Its compression of cpio is seamlessly integrated into Aspose.Zip. Use the SaveXzCompressed method of a cpio archive.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.