diff --git a/kernel/model/import.go b/kernel/model/import.go index 070f9a4fd..18eaa0054 100644 --- a/kernel/model/import.go +++ b/kernel/model/import.go @@ -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() {