mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Merge pull request #5987 from Chocobo1/temp_dir
Put temp files in .qBittorrent directory
This commit is contained in:
commit
ba03fb30f3
8 changed files with 12 additions and 5 deletions
|
@ -491,3 +491,10 @@ QString Utils::Fs::cacheLocation()
|
|||
locationDir.mkpath(locationDir.absolutePath());
|
||||
return location;
|
||||
}
|
||||
|
||||
QString Utils::Fs::tempPath()
|
||||
{
|
||||
static const QString path = QDir::tempPath() + "/.qBittorrent/";
|
||||
QDir().mkdir(path);
|
||||
return path;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue