mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +08:00
committed by
Mathew Sutcliffe
parent
797e5dd576
commit
a492fe4806
@@ -101,6 +101,11 @@ namespace BlackMisc
|
|||||||
return QDir::cleanPath(path1 + QChar('/') + path2);
|
return QDir::cleanPath(path1 + QChar('/') + path2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString CFileUtils::appendFilePaths(const QString &path1, const QString &path2, const QString &path3)
|
||||||
|
{
|
||||||
|
return CFileUtils::appendFilePaths(CFileUtils::appendFilePaths(path1, path2), path3);
|
||||||
|
}
|
||||||
|
|
||||||
bool CFileUtils::copyRecursively(const QString &sourceDir, const QString &destinationDir)
|
bool CFileUtils::copyRecursively(const QString &sourceDir, const QString &destinationDir)
|
||||||
{
|
{
|
||||||
QFileInfo sourceFileInfo(sourceDir);
|
QFileInfo sourceFileInfo(sourceDir);
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ namespace BlackMisc
|
|||||||
//! \sa CNetworkUtils::buildUrl for URLs
|
//! \sa CNetworkUtils::buildUrl for URLs
|
||||||
static QString appendFilePaths(const QString &path1, const QString &path2);
|
static QString appendFilePaths(const QString &path1, const QString &path2);
|
||||||
|
|
||||||
|
//! Append file paths
|
||||||
|
//! \sa CNetworkUtils::buildUrl for URLs
|
||||||
|
static QString appendFilePaths(const QString &path1, const QString &path2, const QString &path3);
|
||||||
|
|
||||||
//! If `sourceDir` is a directory, copies it recursively, so that `sourceDir` becomes `destinationDir`.
|
//! If `sourceDir` is a directory, copies it recursively, so that `sourceDir` becomes `destinationDir`.
|
||||||
//! If it is a file, just copies the file.
|
//! If it is a file, just copies the file.
|
||||||
static bool copyRecursively(const QString &sourceDir, const QString &destinationDir);
|
static bool copyRecursively(const QString &sourceDir, const QString &destinationDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user