mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Fix npe
This commit is contained in:
parent
120a88db4c
commit
e6cfabe08a
1 changed files with 4 additions and 0 deletions
|
|
@ -307,6 +307,10 @@ func fixBlockTreeByFileSys() {
|
|||
return nil
|
||||
}
|
||||
|
||||
if nil == info {
|
||||
return nil
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
if strings.HasPrefix(info.Name(), ".") {
|
||||
return filepath.SkipDir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue