Utils: Add PersistentCacheStore

Change-Id: I952e0271afcc0fd4b03ef75fa5acb219be153290
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-09-05 10:12:33 +02:00
parent 7adeaafd93
commit 1c5aa22257
8 changed files with 172 additions and 0 deletions

View File

@@ -749,6 +749,11 @@ FilePath FilePath::withExecutableSuffix() const
return withNewPath(OsSpecificAspects::withExecutableSuffix(osType(), path()));
}
FilePath FilePath::withSuffix(const QString &suffix) const
{
return withNewPath(path() + suffix);
}
static bool startsWithWindowsDriveLetterAndSlash(QStringView path)
{
return path.size() > 2 && path[1] == ':' && path[2] == '/' && isWindowsDriveLetter(path[0]);