mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +01:00
🎨 Improve importing .sy.zip https://github.com/siyuan-note/siyuan/issues/17047#issuecomment-3906289100
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
bd076a36a8
commit
2d2ef40a7c
1 changed files with 2 additions and 2 deletions
|
|
@ -581,7 +581,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if d == nil {
|
||||
if d == nil || unzipRootPath == path {
|
||||
return nil
|
||||
}
|
||||
if d.Name() == "assets" && d.IsDir() {
|
||||
|
|
@ -627,7 +627,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if d == nil {
|
||||
if d == nil || unzipRootPath == path {
|
||||
return nil
|
||||
}
|
||||
if d.Name() == "emojis" && d.IsDir() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue