Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-12-30 22:26:05 +08:00
commit 5913fa5218

View file

@ -24,6 +24,7 @@ import (
"strings"
"time"
"github.com/88250/gulu"
"github.com/siyuan-note/filelock"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/cache"
@ -130,4 +131,11 @@ func DisableFeature(feature *C.char) {
util.DisableFeature(C.GoString(feature))
}
//export Unzip
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)
}
}
func main() {}