mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
🐛 Kernel crash when WPS opens Excel asset https://github.com/siyuan-note/siyuan/issues/17010 (#17011)
This commit is contained in:
parent
2403275fb0
commit
3c2c33b35c
2 changed files with 8 additions and 9 deletions
|
|
@ -86,8 +86,10 @@ func HandleAssetsRemoveEvent(assetAbsPath string) {
|
|||
if !filelock.IsExist(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
|
||||
if ".DS_Store" == filepath.Base(assetAbsPath) {
|
||||
if gulu.File.IsDir(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
if filelock.IsHidden(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -106,8 +108,10 @@ func HandleAssetsChangeEvent(assetAbsPath string) {
|
|||
if !filelock.IsExist(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
|
||||
if ".DS_Store" == filepath.Base(assetAbsPath) {
|
||||
if gulu.File.IsDir(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
if filelock.IsHidden(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue