From e7a3c0789aad1642bc72a47a4f0478db0ad33649 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 16 Nov 2022 15:53:46 +0300 Subject: [PATCH] Disable ci3 (#6063) --- cmd/downloader/downloader/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/downloader/downloader/util.go b/cmd/downloader/downloader/util.go index d44c95a0b..48d9c6b77 100644 --- a/cmd/downloader/downloader/util.go +++ b/cmd/downloader/downloader/util.go @@ -190,7 +190,7 @@ func buildTorrentIfNeed(fName, root string) (err error) { // AddSegment - add existing .seg file, create corresponding .torrent if need func AddSegment(originalFileName, snapDir string, client *torrent.Client) (bool, error) { fPath := filepath.Join(snapDir, originalFileName) - if !dir.FileExist(fPath + ".torrent") { + if !dir2.FileExist(fPath + ".torrent") { return false, nil } _, err := AddTorrentFile(fPath+".torrent", client)