🎨 数据同步忽略用于文件系统检查的文件 https://github.com/siyuan-note/siyuan/issues/7744

This commit is contained in:
Liang Ding 2023-03-22 18:11:19 +08:00
parent df502ec42a
commit 14ad385ed8
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 10 additions and 2 deletions

View file

@ -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