mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Assets starting with . should not be considered missing assets https://github.com/siyuan-note/siyuan/issues/8821
This commit is contained in:
parent
77c64abd93
commit
b7beff91e5
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue