Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-17 11:27:17 +08:00
parent 345d802725
commit 9186eac4bd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
})