tstor/daemons/atorrent/delivery/graphql/fs.resolvers.go
royalcat a89b9e7303
Some checks failed
docker / build-docker (push) Failing after 57s
fix atorrent submodule error
2025-01-08 16:39:01 +03:00

25 lines
563 B
Go

package graphql
import (
"context"
"git.kmsign.ru/royalcat/tstor/src/delivery/graphql/model"
)
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 }