mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 更新版本后自动打开最新版的用户指南重复 https://github.com/siyuan-note/siyuan/issues/7517
This commit is contained in:
parent
dd5336b9b1
commit
76aef4689b
8 changed files with 66 additions and 6 deletions
|
|
@ -194,6 +194,9 @@ func SizeOfDirectory(path string) (size int64, err error) {
|
|||
func DataSize() (dataSize, assetsSize int64) {
|
||||
filepath.Walk(DataDir, func(path string, info os.FileInfo, err error) error {
|
||||
if nil != err {
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
logging.LogErrorf("size of data failed: %s", err)
|
||||
return io.EOF
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue