fix dep, impl nonempty
This commit is contained in:
parent
c8c18403e4
commit
a5d237df2a
24 changed files with 286 additions and 215 deletions
3
vendor/github.com/hanwen/go-fuse/fuse/pathfs/loopback.go
generated
vendored
3
vendor/github.com/hanwen/go-fuse/fuse/pathfs/loopback.go
generated
vendored
|
|
@ -89,7 +89,7 @@ func (fs *loopbackFileSystem) OpenDir(name string, context *fuse.Context) (strea
|
|||
for {
|
||||
infos, err := f.Readdir(want)
|
||||
for i := range infos {
|
||||
// workaround forhttps://code.google.com/p/go/issues/detail?id=5960
|
||||
// workaround for https://code.google.com/p/go/issues/detail?id=5960
|
||||
if infos[i] == nil {
|
||||
continue
|
||||
}
|
||||
|
|
@ -99,6 +99,7 @@ func (fs *loopbackFileSystem) OpenDir(name string, context *fuse.Context) (strea
|
|||
}
|
||||
if s := fuse.ToStatT(infos[i]); s != nil {
|
||||
d.Mode = uint32(s.Mode)
|
||||
d.Ino = s.Ino
|
||||
} else {
|
||||
log.Printf("ReadDir entry %q for %q has no stat info", n, name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue