diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.go index 334684a90..4d1579fbd 100644 --- a/kernel/model/index_fix.go +++ b/kernel/model/index_fix.go @@ -154,6 +154,10 @@ func resetDuplicateBlocksOnFileSys() { boxPath := filepath.Join(util.DataDir, box.ID) var duplicatedTrees []*parse.Tree filepath.Walk(boxPath, func(path string, info os.FileInfo, err error) error { + if nil == info { + return nil + } + if info.IsDir() { if boxPath == path { // 跳过根路径(笔记本文件夹)