Ref T253, utility functions to support UNC

This commit is contained in:
Klaus Basan
2018-02-17 06:23:44 +01:00
parent f265222a45
commit 5cc70c2903
3 changed files with 21 additions and 3 deletions

View File

@@ -67,13 +67,21 @@ namespace BlackMisc
//! \sa CNetworkUtils::buildUrl for URLs
static QString appendFilePaths(const QString &path1, const QString &path2);
//! Strip file from path a/b/c.json a/b
static QString stripFileFromPath(const QString &path);
//! Append file paths
//! \sa CNetworkUtils::buildUrl for URLs
static QString appendFilePathsAndFixUnc(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);
//! Append file paths
//! \sa CNetworkUtils::buildUrl for URLs
static QString appendFilePathsAndFixUnc(const QString &path1, const QString &path2, const QString &path3);
//! Strip file from path a/b/c.json a/b
static QString stripFileFromPath(const QString &path);
//! 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);