mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
🎨 Update av export
This commit is contained in:
parent
82c946ab4d
commit
707e9e03cc
1 changed files with 10 additions and 0 deletions
|
|
@ -187,6 +187,16 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
})
|
||||
}
|
||||
|
||||
// 将关联的数据库文件移动到 data/storage/av/ 下
|
||||
storageAvDir := filepath.Join(unzipRootPath, "storage", "av")
|
||||
if gulu.File.IsExist(storageAvDir) {
|
||||
targetStorageAvDir := filepath.Join(util.DataDir, "storage", "av")
|
||||
if copyErr := filelock.Copy(storageAvDir, targetStorageAvDir); nil != copyErr {
|
||||
logging.LogErrorf("copy storage av dir from [%s] to [%s] failed: %s", storageAvDir, targetStorageAvDir, copyErr)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 写回 .sy
|
||||
for _, tree := range trees {
|
||||
syPath := filepath.Join(unzipRootPath, tree.Path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue