5 // Information specific to a single file inside the MetaInfo structure.
7 Length int64 `bencode:"length"`
8 Path []string `bencode:"path"`
11 func (fi *FileInfo) DisplayPath(info *Info) string {
13 return strings.Join(fi.Path, "/")
19 func (me FileInfo) Offset(info *Info) (ret int64) {
20 for _, fi := range info.UpvertedFiles() {
21 if me.DisplayPath(info) == fi.DisplayPath(info) {