This commit is contained in:
parent
fa084118c3
commit
95016d54c1
1 changed files with 5 additions and 1 deletions
|
@ -143,8 +143,12 @@ func readdirnames(ctx context.Context, vfs Filesystem, dir string) ([]string, er
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var names []string
|
names := make([]string, 0, len(files))
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
|
if file == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
names = append(names, file.Name())
|
names = append(names, file.Name())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue