mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Use 'fail if exist' strategy on automatic move
Prevent existing files overwriting when torrent is moved automatically (e.g. when moved from incomplete to final save path). PR #17855.
This commit is contained in:
committed by
GitHub
parent
f66ec4430d
commit
4f0990dc29
@@ -2166,7 +2166,7 @@ void TorrentImpl::adjustStorageLocation()
|
||||
const Path targetPath = ((isFinished || downloadPath.isEmpty()) ? savePath() : downloadPath);
|
||||
|
||||
if ((targetPath != actualStorageLocation()) || isMoveInProgress())
|
||||
moveStorage(targetPath, MoveStorageMode::Overwrite);
|
||||
moveStorage(targetPath, MoveStorageMode::FailIfExist);
|
||||
}
|
||||
|
||||
lt::torrent_handle TorrentImpl::nativeHandle() const
|
||||
|
||||
Reference in New Issue
Block a user