From 55cae072f5a3f505df0bea89dc421eaa2edb1a53 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 12 Nov 2015 03:25:04 +1100 Subject: [PATCH] Add method File.Torrent --- file.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/file.go b/file.go index b8550cc7..cdeb3c70 100644 --- a/file.go +++ b/file.go @@ -15,6 +15,10 @@ type File struct { fi metainfo.FileInfo } +func (f *File) Torrent() Torrent { + return f.t +} + // Data for this file begins this far into the torrent. func (f *File) Offset() int64 { return f.offset -- 2.48.1