mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T253, utility functions to support UNC
This commit is contained in:
@@ -114,6 +114,11 @@ namespace BlackMisc
|
||||
return QDir::cleanPath(path1 + QChar('/') + path2);
|
||||
}
|
||||
|
||||
QString CFileUtils::appendFilePathsAndFixUnc(const QString &path1, const QString &path2)
|
||||
{
|
||||
return CFileUtils::fixWindowsUncPath(appendFilePaths(path1, path2));
|
||||
}
|
||||
|
||||
QString CFileUtils::stripFileFromPath(const QString &path)
|
||||
{
|
||||
if (path.endsWith('/')) { return path; }
|
||||
@@ -126,6 +131,11 @@ namespace BlackMisc
|
||||
return CFileUtils::appendFilePaths(CFileUtils::appendFilePaths(path1, path2), path3);
|
||||
}
|
||||
|
||||
QString CFileUtils::appendFilePathsAndFixUnc(const QString &path1, const QString &path2, const QString &path3)
|
||||
{
|
||||
return CFileUtils::fixWindowsUncPath(CFileUtils::appendFilePaths(CFileUtils::appendFilePaths(path1, path2), path3));
|
||||
}
|
||||
|
||||
bool CFileUtils::copyRecursively(const QString &sourceDir, const QString &destinationDir)
|
||||
{
|
||||
QFileInfo sourceFileInfo(sourceDir);
|
||||
|
||||
Reference in New Issue
Block a user