Allow relative profile paths

PR #19558.
This commit is contained in:
Victor Chernyakin
2023-12-06 23:20:37 -07:00
committed by GitHub
parent 7a41192597
commit 0297f0f34b
3 changed files with 9 additions and 2 deletions

View File

@@ -345,6 +345,11 @@ bool Utils::Fs::isDir(const Path &path)
return QFileInfo(path.data()).isDir();
}
Path Utils::Fs::toAbsolutePath(const Path &path)
{
return Path(QFileInfo(path.data()).absoluteFilePath());
}
Path Utils::Fs::toCanonicalPath(const Path &path)
{
return Path(QFileInfo(path.data()).canonicalFilePath());