Use unique temp directories

Save torrent in temp_path/<torrent_hash> directory.
Closes #5154.
This commit is contained in:
Vladimir Golovnev (Glassez)
2016-04-23 19:34:01 +03:00
parent ab412ebf37
commit 850556fdfa
3 changed files with 9 additions and 3 deletions

View File

@@ -185,6 +185,7 @@ namespace BitTorrent
void setTempPath(QString path);
bool isTempPathEnabled() const;
void setTempPathEnabled(bool enabled);
QString torrentTempPath(const InfoHash &hash) const;
static bool isValidCategoryName(const QString &name);
// returns category itself and all top level categories