🎨 调整数据同步接入第三方存储服务 https://github.com/siyuan-note/siyuan/issues/6530

This commit is contained in:
Liang Ding 2022-11-09 19:52:30 +08:00
parent de3a002074
commit 6261894560
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -378,14 +378,21 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {
for _, d := range dirs {
dirSize := d.Size
syncDirs = append(syncDirs, &Sync{
sync := &Sync{
Size: dirSize,
HSize: humanize.Bytes(uint64(dirSize)),
HSize: "-",
Updated: d.Updated,
CloudName: d.Name,
})
}
if conf.ProviderSiYuan == Conf.Sync.Provider {
sync.HSize = humanize.Bytes(uint64(dirSize))
}
syncDirs = append(syncDirs, sync)
}
hSize = "-"
if conf.ProviderSiYuan == Conf.Sync.Provider {
hSize = humanize.Bytes(uint64(size))
}
hSize = humanize.Bytes(uint64(size))
return
}