downloader: fix tmp dir detection check #4575

This commit is contained in:
Alex Sharov 2022-06-29 19:53:52 +06:00 committed by GitHub
parent 479912423e
commit cfa8b545fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)