Browse Source

修复测试发现的bug

feature_gxh
Sydonian 4 months ago
parent
commit
2a913e7a6c
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      client/internal/mount/vfs/cache/cache.go

+ 5
- 0
client/internal/mount/vfs/cache/cache.go View File

@@ -799,6 +799,11 @@ func (c *Cache) scanningData() {
continue continue
} }


// 按Readdir函数的说法,不会存在len(e) == 0且err == nil的情况,但实际发生了
if len(e) == 0 {
continue
}

if e[0].IsDir() { if e[0].IsDir() {
child, err := os.Open(filepath.Join(lastNode.Name(), e[0].Name())) child, err := os.Open(filepath.Join(lastNode.Name(), e[0].Name()))
if err != nil { if err != nil {


Loading…
Cancel
Save