Utils: Introduce FilePath::is{Relative,Absolute}Path

To operate correctly with remote target files systems that do not
match the host OS.

Change-Id: Ia4ea284dc38399deacb50410c9618e1e139f4e13
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-07-01 11:26:59 +02:00
parent 9a35983b09
commit 9287b1a3be
2 changed files with 20 additions and 7 deletions

View File

@@ -143,6 +143,9 @@ public:
bool isExecutableFile() const;
bool isReadableFile() const;
bool isReadableDir() const;
bool isRelativePath() const;
bool isAbsolutePath() const { return !isRelativePath(); }
bool createDir() const;
QList<FilePath> dirEntries(const QStringList &nameFilters,
QDir::Filters filters,