mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if nil == info {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
if strings.HasPrefix(info.Name(), ".") {
|
if strings.HasPrefix(info.Name(), ".") {
|
||||||
return filepath.SkipDir
|
return filepath.SkipDir
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue