浏览代码

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 年之前
父节点
当前提交
e55fc597cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/model/index_fix.go

+ 1 - 1
kernel/model/index_fix.go

@@ -114,7 +114,7 @@ func fixBlockTreeByFileSys() {
 		boxPath := filepath.Join(util.DataDir, box.ID)
 		var paths []string
 		filepath.Walk(boxPath, func(path string, info os.FileInfo, err error) error {
-			if !info.IsDir() && filepath.Ext(path) == ".sy" {
+			if !info.IsDir() && filepath.Ext(path) == ".sy" && !strings.Contains(filepath.ToSlash(path), "/assets/") {
 				p := path[len(boxPath):]
 				p = filepath.ToSlash(p)
 				paths = append(paths, p)