mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 数据同步忽略用于文件系统检查的文件 https://github.com/siyuan-note/siyuan/issues/7744
This commit is contained in:
parent
df502ec42a
commit
14ad385ed8
3 changed files with 10 additions and 2 deletions
|
|
@ -330,9 +330,13 @@ func buildSnapshots(logs []*dejavu.Log) (ret []*Snapshot) {
|
|||
func statTypesByPath(files []*entity.File) (ret []*TypeCount) {
|
||||
for _, f := range files {
|
||||
ext := path.Ext(f.Path)
|
||||
if "" == ext {
|
||||
ext = "noExt"
|
||||
}
|
||||
|
||||
found := false
|
||||
for _, tc := range ret {
|
||||
|
||||
if tc.Type == ext {
|
||||
tc.Count++
|
||||
found = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue