package meta import "path" type File struct { Length int `bencode:"length"` MD5Sum []byte `bencode:"md5sum,optional"` // never seen in wildlife Path []string `bencode:"path"` } func (f File) Name() string { return path.Join(f.Path...) }