Extrair alcatrão

TAR files are most commonly used for bundling and compressing multiple files and directories into a single archive. However, extracting them could be troublesome at times, as they are used in conjunction with GZIP and BZIP2. However, with the versatility of IronZIP, we can simply call the IronTarArchive class to extract the contents of the TAR for the last layer and then further extract it in the second format, all within a single library.

Extraindo arquivo TAR

Para começar, precisamos incluir o namespace IronZIP em nosso projeto, o que nos dará acesso às suas funcionalidades. We can then use the IronTarArchive class to extract the contents of the TAR file with the method ExtractArchiveToDirectory.

Esta função foi projetada para descompactar o conteúdo de um arquivo TAR em um diretório especificado. O parâmetro inicial deve ser o caminho completo para o arquivo TAR que você deseja extrair. O segundo parâmetro indica a pasta de destino onde os arquivos descompactados serão armazenados.

Aprenda a criar, ler e extrair arquivos ZIP.

Pronto para começar?
Nuget Downloads 19,066 | Versão: 2026.3 acaba de ser lançado
Still Scrolling Icon

Ainda está rolando a tela?

Quer provas rápidas? PM > Install-Package IronZip
executar um exemplo Veja seus arquivos se transformarem em um arquivo morto.