We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello everyone, I’m trying to decompress a compress file with multiple files on it
the following code works to .tgz filed, but don’t for .tar.gz files
What is wrong here?
FileInfo infoCompressed = new FileInfo(compressedFilePath); DirectoryInfo destinyDir = new DirectoryInfo(infoCompressed.Directory.ToString()); if (!destinyDir.Exists) destinyDir.Create(); using(Stream originFile = new GZipInputStream(infoCompressed.OpenRead())) { using(TarArchive tarFile = TarArchive.CreateInputTarArchive(originFile, TarBuffer.DefaultBlockFactor, Encoding.Default)) { tarFile.ExtractContents(destinyDir.FullName); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello everyone, I’m trying to decompress a compress file with multiple files on it
the following code works to .tgz filed, but don’t for .tar.gz files
What is wrong here?
The text was updated successfully, but these errors were encountered: