Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-16 12:09:50 +08:00
parent bd076a36a8
commit 2d2ef40a7c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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() {