🐛 Fix npe

This commit is contained in:
Daniel 2024-01-20 20:59:25 +08:00
parent 120a88db4c
commit e6cfabe08a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -307,6 +307,10 @@ func fixBlockTreeByFileSys() {
return nil
}
if nil == info {
return nil
}
if info.IsDir() {
if strings.HasPrefix(info.Name(), ".") {
return filepath.SkipDir