Renamed function id Directory utils and added string only version

This commit is contained in:
Klaus Basan
2019-07-13 03:38:25 +02:00
committed by Mat Sutcliffe
parent cd63712cd7
commit cb77279b4d
3 changed files with 22 additions and 10 deletions

View File

@@ -187,13 +187,17 @@ namespace BlackMisc
//! Same existing directories
static bool isSameExistingDirectory(const QString &dir1, const QString &dir2);
//! Is dir1 a subdirectory (possibly nested) of dir2 or the same directory
//! Is "testDir" a subdirectory (possibly nested) of "parentDir" or the same directory
//! \remark testing on real directory structure
static bool isSubDirectoryOf(const QString &dir1, const QString &dir2);
static bool isSameOrSubDirectoryOf(const QString &testDir, const QString &parentDir);
//! Is dir1 a subdirectory (possibly nested) of dir2 or the same directory
//! Is "testDir" a subdirectory (possibly nested) of "parentDir" or the same directory
//! \remark testing on real directory structure
static bool isSubDirectoryOf(const QString &dir1, const QDir &dir2);
static bool isSameOrSubDirectoryOf(const QString &testDir, const QDir &parentDir);
//! Is "testDir" a subdirectory (possibly nested) of "parentDir" or the same directory
//! \remark String based only
static bool isSameOrSubDirectoryOfStringBased(const QString &testDir, const QString &parentDir);
//! Result of directory comparison
struct DirComparison