mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 兼容文件同步和快照同步
This commit is contained in:
parent
2065aeded9
commit
5f6e416f5a
1 changed files with 3 additions and 0 deletions
|
|
@ -447,6 +447,9 @@ func incReindex(upserts, removes []string) {
|
|||
}
|
||||
|
||||
upsertFile = filepath.ToSlash(upsertFile)
|
||||
if strings.HasPrefix(upsertFile, "/") {
|
||||
upsertFile = upsertFile[1:]
|
||||
}
|
||||
box := upsertFile[:strings.Index(upsertFile, "/")]
|
||||
p := strings.TrimPrefix(upsertFile, box)
|
||||
tree, err0 := LoadTree(box, p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue