mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 12:38:07 +01:00
🎨 Improve importing .sy.zip https://github.com/siyuan-note/siyuan/issues/17047#issuecomment-3909134087
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
345d802725
commit
9186eac4bd
1 changed files with 2 additions and 6 deletions
|
|
@ -585,9 +585,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
return nil
|
||||
}
|
||||
if d.Name() == "assets" && d.IsDir() {
|
||||
if syFiles, _ := filepath.Glob(filepath.Join(path, "*/*.sy")); 1 > len(syFiles) {
|
||||
assetsDirs = append(assetsDirs, path)
|
||||
}
|
||||
assetsDirs = append(assetsDirs, path)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
|
@ -631,9 +629,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
return nil
|
||||
}
|
||||
if d.Name() == "emojis" && d.IsDir() {
|
||||
if syFiles, _ := filepath.Glob(filepath.Join(path, "*/*.sy")); 1 > len(syFiles) {
|
||||
emojiDirs = append(emojiDirs, path)
|
||||
}
|
||||
emojiDirs = append(emojiDirs, path)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue