From cfa8b545fc0f094de30771f46d350fa4c6ac69e0 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 29 Jun 2022 19:53:52 +0600 Subject: [PATCH] downloader: fix tmp dir detection check #4575 --- 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 0c96aff15..1cc79d588 100644 --- a/cmd/downloader/downloader/util.go +++ b/cmd/downloader/downloader/util.go @@ -355,7 +355,7 @@ func VerifyDtaFiles(ctx context.Context, snapDir string) error { defer logEvery.Stop() tmpSnapDir := filepath.Join(snapDir, "tmp") // snapshots are in sub-dir "tmp", if not fully downloaded - if !common.FileExist(tmpSnapDir) { + if common.FileExist(tmpSnapDir) { snapDir = tmpSnapDir } files, err := AllTorrentPaths(snapDir)