mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 20:08:49 +01:00
🎨 调整数据同步接入第三方存储服务 https://github.com/siyuan-note/siyuan/issues/6530
This commit is contained in:
parent
de3a002074
commit
6261894560
1 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue