From 62aa8a19783eddca5034b0a430f95028cc7c577c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 1 Jul 2016 12:20:40 +0200 Subject: Split again --- meta/torrent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta') 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: -- cgit v1.2.3