mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user