func Unzip(src string, dest string) error {
	r, err := zip.OpenReader(src)
	if err != nil {
		return err
	}
	defer utils.CloseTheCloser(r)
	for _, f := range r.File {
		fpath := filepath.Join(dest, f.Name)
		if !strings.HasPrefix(fpath, filepath.Clean(dest)+string(os.PathSeparator)) {
			return helpers.Logger.LogError(helpers.GetRequestID(context.TODO()), "Invalid file path provided", nil, nil)
		}
		if f.FileInfo().IsDir() {
			_ = os.MkdirAll(fpath, os.ModePerm)
			continue
		}
		if err = os.MkdirAll(filepath.Dir(fpath), os.ModePerm); err != nil {
			return err
		}
		outFile, err := os.OpenFile(fpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, f.Mode())
		if err != nil {
			return err
		}
		rc, err := f.Open()
		if err != nil {
			return err
		}
		_, err = io.Copy(outFile, rc)
		utils.CloseTheCloser(outFile)
		utils.CloseTheCloser(rc)
		if err != nil {
			return err
		}
	}
	return nil
}
Unzip unzips a source file to a given destination
package utils
import (
	"archive/zip"
	"context"
	"io"
	"net/http"
	"os"
	"path/filepath"
	"runtime"
	"strings"
	"github.com/spaceuptech/helpers"
	"github.com/spaceuptech/space-api-go/utils"
)