Fix creation of torrent files (#9048)

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
This commit is contained in:
ledgerwatch 2023-12-21 12:42:07 +00:00 committed by GitHub
parent 55d37b938c
commit 3b10ba95d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,7 +244,8 @@ func CreateTorrentFileFromInfo(root string, info *metainfo.Info, mi *metainfo.Me
if err != nil { if err != nil {
return err return err
} }
return torrentFiles.CreateTorrentFromMetaInfo(root, mi) fPath := filepath.Join(root, info.Name+".torrent")
return torrentFiles.CreateTorrentFromMetaInfo(fPath, mi)
} }
func AllTorrentPaths(dirs datadir.Dirs) ([]string, error) { func AllTorrentPaths(dirs datadir.Dirs) ([]string, error) {