aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/torrent.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/torrent.go b/meta/torrent.go
index edf0682..88c48d6 100644
--- a/meta/torrent.go
+++ b/meta/torrent.go
@@ -58,7 +58,8 @@ func (i Info) FullPath(n int) (string, error) {
if n >= len(i.Files) || n < 0 {
return "", errors.New("out of range")
}
- return path.Join(append([]string{i.Name}, i.Files[n].Path...)...), nil
+ p := append([]string{i.Name}, i.Files[n].Path...)
+ return path.Join(p...), nil
}
// piece-to-file mapping: