Is possible to decompress files .tar.gz

Hi everyone,

Just as the title says,

I’ve got a process for how I should decompress xxxxx.tar.gz

Does anyone know if this is possible?

Kind regards,

Hi @Pelayo_Celaya_Fernandez

These activities will able to help

GZ and TAR Unzip Activities - RPA Component | UiPath Marketplace | Overview

1 Like

Hi,

Can you try the following sample?

Using  tgzStream = System.IO.File.OpenRead(tgzFile)
Using gzStream = New ICSharpCode.SharpZipLib.GZip.GZipInputStream(tgzStream)
     Using tarArchive = ICSharpCode.SharpZipLib.Tar.TarArchive.CreateInputTarArchive(gzStream) 
         tarArchive.ExtractContents(outFolder)
   End Using
End Using
End Using

Sample
Sample20231122-8.zip (10.6 KB)

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.