tstor/daemons/atorrent/delivery/graphql/fs.resolvers.go

26 lines
563 B
Go
Raw Normal View History

2025-01-08 13:39:01 +00:00
package graphql
2025-01-07 22:25:46 +00:00
import (
"context"
2025-01-08 13:39:01 +00:00
"git.kmsign.ru/royalcat/tstor/src/delivery/graphql/model"
2025-01-07 22:25:46 +00:00
)
func (r *torrentFSResolver) Entries(ctx context.Context, obj *model.TorrentFs) ([]model.FsEntry, error) {
// entries, err := obj.FS.ReadDir(ctx, ".")
// if err != nil {
// return nil, err
// }
out := []model.FsEntry{}
// for _, e := range entries {
// entry, err := model.FillFsEntry(ctx, e, obj.FS, ".")
// if err != nil {
// return nil, err
// }
// out = append(out, entry)
// }
return out, nil
}
type torrentFSResolver struct{ *Resolver }