mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
downloader: fix tmp dir detection check #4575
This commit is contained in:
parent
479912423e
commit
cfa8b545fc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user