🐛 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:01:53 +08:00
parent 77c64abd93
commit b7beff91e5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -738,6 +738,14 @@ func MissingAssets() (ret []string) {
}
if "" == assetsPathMap[dest] {
if strings.HasPrefix(dest, "assets/.") {
// 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
}
}
ret = append(ret, dest)
continue
}