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.
Extraer archivo TAR con C#
- usando IronZip;
IronTarArchive.ExtractArchiveToDirectory("salida.tar", "extraído");
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.




