fs: Root node wasn't listing: Bazil keeps changing his interface
This commit is contained in:
parent
44947ff52f
commit
f58c7203c7
|
@ -48,7 +48,11 @@ func (fs *TorrentFS) Init(ctx context.Context, req *fuse.InitRequest, resp *fuse
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ fusefs.NodeForgetter = rootNode{}
|
var (
|
||||||
|
_ fusefs.NodeForgetter = rootNode{}
|
||||||
|
_ fusefs.HandleReadDirAller = rootNode{}
|
||||||
|
_ fusefs.HandleReadDirAller = dirNode{}
|
||||||
|
)
|
||||||
|
|
||||||
type rootNode struct {
|
type rootNode struct {
|
||||||
fs *TorrentFS
|
fs *TorrentFS
|
||||||
|
@ -260,7 +264,7 @@ func (me rootNode) Lookup(ctx context.Context, name string) (_node fusefs.Node,
|
||||||
return
|
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() {
|
for _, t := range me.fs.Client.Torrents() {
|
||||||
if t.Info == nil {
|
if t.Info == nil {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue