mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
committed by
GitHub
parent
7a41192597
commit
0297f0f34b
@@ -345,6 +345,11 @@ bool Utils::Fs::isDir(const Path &path)
|
||||
return QFileInfo(path.data()).isDir();
|
||||
}
|
||||
|
||||
Path Utils::Fs::toAbsolutePath(const Path &path)
|
||||
{
|
||||
return Path(QFileInfo(path.data()).absoluteFilePath());
|
||||
}
|
||||
|
||||
Path Utils::Fs::toCanonicalPath(const Path &path)
|
||||
{
|
||||
return Path(QFileInfo(path.data()).canonicalFilePath());
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace Utils::Fs
|
||||
|
||||
QString toValidFileName(const QString &name, const QString &pad = u" "_s);
|
||||
Path toValidPath(const QString &name, const QString &pad = u" "_s);
|
||||
Path toAbsolutePath(const Path &path);
|
||||
Path toCanonicalPath(const Path &path);
|
||||
|
||||
bool copyFile(const Path &from, const Path &to);
|
||||
|
||||
Reference in New Issue
Block a user