fs/torrentfs.go | 8 ++++++-- diff --git a/fs/torrentfs.go b/fs/torrentfs.go index 270bf3e47258f32d354b019e83801fa4cfe0ebeb..3ebbbf756592146f5e383fe63a3ed645311b4b9e 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -48,7 +48,11 @@ resp.Flags |= fuse.InitAsyncRead return nil } -var _ fusefs.NodeForgetter = rootNode{} +var ( + _ fusefs.NodeForgetter = rootNode{} + _ fusefs.HandleReadDirAller = rootNode{} + _ fusefs.HandleReadDirAller = dirNode{} +) type rootNode struct { fs *TorrentFS @@ -260,7 +264,7 @@ } return } -func (me rootNode) ReadDir(ctx context.Context) (dirents []fuse.Dirent, err error) { +func (me rootNode) ReadDirAll(ctx context.Context) (dirents []fuse.Dirent, err error) { for _, t := range me.fs.Client.Torrents() { if t.Info == nil { continue