Fixed a crash.
parent
71a91b98f6
commit
3a8a8855a1
|
@ -28,6 +28,7 @@ func (fs *HelloFS) OpenDir(
|
||||||
req *fuse.OpenDirRequest) (resp *fuse.OpenDirResponse, err error) {
|
req *fuse.OpenDirRequest) (resp *fuse.OpenDirResponse, err error) {
|
||||||
// We always allow opening the root directory.
|
// We always allow opening the root directory.
|
||||||
if req.Inode == fuse.RootInodeID {
|
if req.Inode == fuse.RootInodeID {
|
||||||
|
resp = &fuse.OpenDirResponse{}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue