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 }