🎨 Ignore hidden files when generating asset history https://github.com/siyuan-note/siyuan/issues/11253
This commit is contained in:
parent
1bae4a16ac
commit
1cbc4c6306
1 changed files with 4 additions and 0 deletions
|
@ -688,6 +688,10 @@ func RemoveUnusedAssets() (ret []string) {
|
|||
for _, p := range unusedAssets {
|
||||
historyPath := filepath.Join(historyDir, p)
|
||||
if p = filepath.Join(util.DataDir, p); filelock.IsExist(p) {
|
||||
if filelock.IsHidden(p) {
|
||||
continue
|
||||
}
|
||||
|
||||
if err = filelock.Copy(p, historyPath); nil != err {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue