🎨 Add Unzip API for HarmonyOS

This commit is contained in:
Daniel 2024-12-30 22:16:52 +08:00
parent 4d48492a05
commit f7a9903715
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -132,8 +132,8 @@ func DisableFeature(feature *C.char) {
}
//export Unzip
func Unzip(zipFilePath, destination string) {
if err := gulu.Zip.Unzip(zipFilePath, destination); nil != err {
func Unzip(zipFilePath, destination *C.char) {
if err := gulu.Zip.Unzip(C.GoString(zipFilePath), C.GoString(destination)); nil != err {
logging.LogErrorf("unzip [%s] failed: %s", zipFilePath, err)
}
}