Hi,
How to extract only files with PEZ character 10, 11 and 12 in file name from this code:
thank you
Eric
How to extract only files with PEZ character 10, 11 and 12 in file name from this code:
C#:
using SharpCompress.Common;
using SharpCompress.Readers;
using System;
using System.IO;
namespace ExcelWorkbook1
{
class SharpCompress
{
public static void UnTAR(String tarFilePath, string uncompressFolderPath)
{
using (Stream stream = File.OpenRead(tarFilePath))
{
var reader = ReaderFactory.Open(stream);
while (reader.MoveToNextEntry())
{
if (!reader.Entry.IsDirectory)
{
ExtractionOptions opt = new ExtractionOptions
{
ExtractFullPath = true,
Overwrite = true
};
reader.WriteEntryToDirectory(uncompressFolderPath, opt);
}
}
}
}
}
}
thank you
Eric