Extraer TAR

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.

Extrayendo el archivo TAR

Para comenzar, necesitamos incluir el espacio de nombres IronZip en nuestro proyecto, que proporciona acceso a sus funcionalidades. We can then use the IronTarArchive class to extract the contents of the TAR file with the method ExtractArchiveToDirectory.

Esta función está diseñada para desempaquetar el contenido de un archivo TAR en un directorio especificado. El parámetro inicial debe ser la ruta completa al archivo TAR que deseas extraer. El segundo parámetro indica la carpeta de destino donde se almacenarán los archivos desempaquetados.

Aprenda a crear, leer y extraer archivos ZIP

¿Listo para empezar?
Nuget Descargas 19,066 | Versión: 2026.3 recién lanzado
Still Scrolling Icon

¿Aún desplazándote?

¿Quieres una prueba rápida? PM > Install-Package IronZip
ejecuta una muestra observa cómo tus archivos se convierten en un archivo.