mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 调整数据同步接入第三方存储服务 https://github.com/siyuan-note/siyuan/issues/6530
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user