mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
refs #887, copy nested directories in wizard
* added utility function * removed preselectMissingOrOutdated, flag for initCurrentDirectories * support for copying nested directories
This commit is contained in:
committed by
Mathew Sutcliffe
parent
96a2b757e7
commit
80b127bce8
@@ -101,6 +101,13 @@ namespace BlackMisc
|
||||
return QDir::cleanPath(path1 + QChar('/') + path2);
|
||||
}
|
||||
|
||||
QString CFileUtils::stripFileFromPath(const QString &path)
|
||||
{
|
||||
if (path.endsWith('/')) { return path; }
|
||||
if (!path.contains('/')) { return path; }
|
||||
return path.left(path.lastIndexOf('/'));
|
||||
}
|
||||
|
||||
QString CFileUtils::appendFilePaths(const QString &path1, const QString &path2, const QString &path3)
|
||||
{
|
||||
return CFileUtils::appendFilePaths(CFileUtils::appendFilePaths(path1, path2), path3);
|
||||
|
||||
Reference in New Issue
Block a user