mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 02:40:54 +08:00
🎨 Add Unzip API for HarmonyOS
This commit is contained in:
parent
4d48492a05
commit
f7a9903715
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user