I have an application which extracts targz files, I would like a ProgressBar
to view the progress of extracting.
But I just have this:
public void ExtractTGZ(String gzArchiveName, String destFolder)
{
Stream inStream = File.OpenRead(gzArchiveName);
Stream gzipStream = new GZipInputStream(inStream);
TarArchive tarArchive = TarArchive.CreateInputTarArchive(gzipStream);
tarArchive.ExtractContents(destFolder);
tarArchive.Close();
gzipStream.Close();
inStream.Close();
}
Have you got any ideas? I actually searched how to know the bytes transfered and the total bytes. I didn't find information about this and for targz file specifically.