mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 Ignore hidden files when generating asset history https://github.com/siyuan-note/siyuan/issues/11253
This commit is contained in:
parent
73790cca17
commit
b5289208a7
3 changed files with 20 additions and 16 deletions
|
|
@ -633,7 +633,11 @@ func recentModifiedAssets() (ret []string) {
|
|||
assets := cache.GetAssets()
|
||||
for _, asset := range assets {
|
||||
if asset.Updated > assetsLatestHistoryTime {
|
||||
ret = append(ret, filepath.Join(util.DataDir, asset.Path))
|
||||
absPath := filepath.Join(util.DataDir, asset.Path)
|
||||
if filelock.IsHidden(absPath) {
|
||||
continue
|
||||
}
|
||||
ret = append(ret, absPath)
|
||||
}
|
||||
}
|
||||
assetsLatestHistoryTime = time.Now().Unix()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue