public void TestNewASCIIFormat() { using (var stream = new CPIOFileStream("example.cpio")) { string destBinFolder = Path.Combine(_destFolder, Path.GetRandomFileName()); stream.Extract(destBinFolder); CheckNewASCIIFormatFiles(destBinFolder); } }
private static void Main(string[] args) { using (CPIOLibSharp.CPIOFileStream sr = new CPIOLibSharp.CPIOFileStream("exampleCrc.cpio")) { sr.Extract(@"F:\", new CPIOLibSharp.ExtractFlags[] { ExtractFlags.ARCHIVE_EXTRACT_TIME }); } }