🐛 Assets starting with . should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821

This commit is contained in:
Daniel 2023-07-26 11:05:22 +08:00
parent b7beff91e5
commit 7548b1008c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -742,11 +742,10 @@ func MissingAssets() (ret []string) {
// Assets starting with `.` should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821
if !gulu.File.IsExist(filepath.Join(util.DataDir, dest)) {
ret = append(ret, dest)
continue
}
} else {
ret = append(ret, dest)
}
ret = append(ret, dest)
continue
}
}