diff --git a/kernel/model/assets.go b/kernel/model/assets.go index 1b35dc621..bc87f3bd2 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -92,6 +92,9 @@ func HandleAssetsRemoveEvent(assetAbsPath string) { if filelock.IsHidden(assetAbsPath) { return } + if strings.HasSuffix(assetAbsPath, ".tmp") { + return + } removeIndexAssetContent(assetAbsPath) removeAssetThumbnail(assetAbsPath) @@ -114,6 +117,9 @@ func HandleAssetsChangeEvent(assetAbsPath string) { if filelock.IsHidden(assetAbsPath) { return } + if strings.HasSuffix(assetAbsPath, ".tmp") { + return + } indexAssetContent(assetAbsPath) removeAssetThumbnail(assetAbsPath)