aboutsummaryrefslogtreecommitdiff
path: root/meta/torrent.go
diff options
context:
space:
mode:
Diffstat (limited to 'meta/torrent.go')
-rw-r--r--meta/torrent.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/torrent.go b/meta/torrent.go
index d6a68dc..0993681 100644
--- a/meta/torrent.go
+++ b/meta/torrent.go
@@ -36,7 +36,8 @@ func (i Info) String() string {
if l := len(i.Files); l > 0 {
s += fmt.Sprintln("files:", l)
for _, f := range i.Files {
- s += fmt.Sprintf(" %s (%d)\n", path.Join(i.Name, path.Join(f.Path...)), f.Length)
+ p := append([]string{i.Name}, f.Path...)
+ s += fmt.Sprintf(" %s (%d)\n", path.Join(p...), f.Length)
i.Length += f.Length
}
}