mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
committed by
GitHub
parent
989b1e6c2c
commit
77aa85fbd3
@@ -292,6 +292,12 @@ bool Utils::Fs::isNetworkFileSystem(const Path &path)
|
||||
|
||||
bool Utils::Fs::copyFile(const Path &from, const Path &to)
|
||||
{
|
||||
if (!from.exists())
|
||||
return false;
|
||||
|
||||
if (!mkpath(to.parentPath()))
|
||||
return false;
|
||||
|
||||
return QFile::copy(from.data(), to.data());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user