Added 3 parameters version

#868
This commit is contained in:
Klaus Basan
2017-03-04 19:23:17 +01:00
committed by Mathew Sutcliffe
parent 797e5dd576
commit a492fe4806
2 changed files with 9 additions and 0 deletions

View File

@@ -101,6 +101,11 @@ namespace BlackMisc
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)
{
QFileInfo sourceFileInfo(sourceDir);

View File

@@ -63,6 +63,10 @@ namespace BlackMisc
//! \sa CNetworkUtils::buildUrl for URLs
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 it is a file, just copies the file.
static bool copyRecursively(const QString &sourceDir, const QString &destinationDir);