2
0
mirror of synced 2025-02-24 06:38:14 +00:00
torrent/metainfo.go

19 lines
339 B
Go
Raw Normal View History

package torrent
import "github.com/anacrolix/libtorgo/metainfo"
2014-12-01 16:40:18 -06:00
// A wrapper around the raw info that provides some helper methods.
type MetaInfo struct {
*metainfo.Info
}
func newMetaInfo(info *metainfo.Info) *MetaInfo {
return &MetaInfo{
Info: info,
}
}
func (me *MetaInfo) SingleFile() bool {
return len(me.Info.Files) == 0
}