tstor/daemons/atorrent/generated/graphql/resolver/fs.resolvers.go
royalcat 5b11b70370
All checks were successful
docker / build-docker (push) Successful in 5m42s
remove old torrent for better times
2025-01-08 01:25:46 +03:00

25 lines
578 B
Go

package resolver
import (
"context"
"git.kmsign.ru/royalcat/tstor/daemons/atorrent/generated/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 }