CPIO ??

Contents
[ Hide Show ]

??

CPIO(Copy In, Copy Out)? ?? ??? ????? ?? ????? ????? ?? Unix ?? ?? ???? ?? ???? ???? ?????. TAR ?? ZIP? ?? ???? ? ????? ????? CPIO? ?? ??? ? ?? ??, ?? ?? ? ????? ???? ??? ??? ????. Aspose.ZIP? .NET ???????? CPIO ???? ?? ? ??? ?????. ?? ???? ???? ???? ??? ???? ??? ???? ????? ???? ??? CPIO ????? ???? ? ????. Cpio ??? *.tar? ?????. Cpio ????? ???? ?? ??? ?? ??? ??? ? ????. ??? ??? ??? ?? ????.

???? ?? ??

cpio ????? ? ?? ??? ???? ??? ????.

 1    using (FileStream cpioFile = File.Open("combined.cpio", FileMode.Create))
 2    {
 3        FileInfo fi1 = new FileInfo("alice29.txt");
 4        FileInfo fi2 = new FileInfo("asyoulik.txt");
 5
 6        using (CpioArchive archive = new CpioArchive())
 7        {
 8            archive.CreateEntry("alice29.txt", fi1);
 9            archive.CreateEntry("asyoulik.txt", fi2);
10            archive.Save(cpioFile, format);
11        }
12    }

cpio ???? ??

Unix ?? ?? ???? ‘cpio’ ????? ???? ?? ? cpio ????? gzip?? ??? ? ????. Aspose.Zip? SaveGzipped ???? ??? ??? ?????.

1    using (var archive = new CpioArchive())
2    {
3        archive.CreateEntries(@"C:\folder", false);
4        archive.SaveGzipped("result.cpio.gz");
5    }

???? xz ????? Linux? Unix?? ??? ?? ????. cpio ??? Aspose.Zip? ???? ?????. cpio ????? SaveXzCompressed ???? ?????.

1    using (var archive = new CpioArchive())
2    {
3        archive.CreateEntries(@"C:\folder", false);
4        archive.SaveXzCompressed("result.cpio.xz");
5    }

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.