mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 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 {
|
for _, p := range unusedAssets {
|
||||||
historyPath := filepath.Join(historyDir, p)
|
historyPath := filepath.Join(historyDir, p)
|
||||||
if p = filepath.Join(util.DataDir, p); filelock.IsExist(p) {
|
if p = filepath.Join(util.DataDir, p); filelock.IsExist(p) {
|
||||||
|
if filelock.IsHidden(p) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if err = filelock.Copy(p, historyPath); nil != err {
|
if err = filelock.Copy(p, historyPath); nil != err {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue