file.go | 4 ++++ diff --git a/file.go b/file.go index b8550cc7eee9acc355361ee6b1a88763ac466729..cdeb3c70425be9ae4cbfd93005f4f87377e0c5ca 100644 --- a/file.go +++ b/file.go @@ -15,6 +15,10 @@ length int64 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