🎨 订正索引时排除 assets 目录下的 .sy 文件
This commit is contained in:
parent
6ad89c12c1
commit
6a6939257e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue