How to unzip a .zip file in Godot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By idkgamedev

I’ve been stressing to get this to work for hours on end to no avail. This is my last resort.

Methods Tried

Note: I know that this has been asked already, I just don’t feel like it’s answers my question properly.

If you don’t mind using the mono version of Godot, there are DotNetZip and SharpZipLib for C# which you can use to do exactly what you need without relying on any tools being provided by the OS.

Then you can do something like the following to extract all files to local folder:

using var zip = ZipFile.Read(ZipFileName);

5pectre7 | 2021-11-21 15:19