mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Ref T131, utility functions
* recursive file copy function * build directories * find newest files
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <QMap>
|
||||
#include <QSet>
|
||||
#include <QString>
|
||||
#include <QDateTime>
|
||||
#include <QFileInfoList>
|
||||
|
||||
namespace BlackMisc
|
||||
@@ -36,6 +37,10 @@ namespace BlackMisc
|
||||
//! Plugins directory
|
||||
static const QString &pluginsDirectory();
|
||||
|
||||
//! The build directory
|
||||
//! \remark if is a local build
|
||||
static const QString &getXSwiftBusBuildDirectory();
|
||||
|
||||
//! The executable file path
|
||||
static QString executableFilePath(const QString &executable);
|
||||
|
||||
@@ -129,6 +134,13 @@ namespace BlackMisc
|
||||
//! Exists directory and does it contains files
|
||||
static bool existsUnemptyDirectory(const QString &testDir);
|
||||
|
||||
//! Make directory if not already existing
|
||||
//! \remark returns true if path exists or was created
|
||||
static bool mkPathIfNotExisting(const QString &dir);
|
||||
|
||||
//! Copy directory recursively
|
||||
static int copyDirectoryRecursively(const QString &fromDir, const QString &toDir, bool replaceOnConflict);
|
||||
|
||||
//! Get the existing directories
|
||||
static QStringList getExistingUnemptyDirectories(const QStringList &directories);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user