mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Remove torrent temp folder if it becomes unneeded
This commit is contained in:
parent
a911dc57f3
commit
66b92f3bb4
1 changed files with 4 additions and 0 deletions
|
@ -1330,6 +1330,10 @@ void TorrentHandle::handleStorageMovedAlert(libtorrent::storage_moved_alert *p)
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug("Torrent is successfully moved from %s to %s", qPrintable(m_oldPath), qPrintable(m_newPath));
|
qDebug("Torrent is successfully moved from %s to %s", qPrintable(m_oldPath), qPrintable(m_newPath));
|
||||||
|
if (m_oldPath == m_session->torrentTempPath(hash())) {
|
||||||
|
qDebug() << "Removing torrent temp folder:" << m_oldPath;
|
||||||
|
Utils::Fs::smartRemoveEmptyFolderTree(m_oldPath);
|
||||||
|
}
|
||||||
updateStatus();
|
updateStatus();
|
||||||
|
|
||||||
m_newPath.clear();
|
m_newPath.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue