Normalize paths using std::filesystem::weakly_canonical
std::filesystem::weakly_canonical resolves symbolic links in paths. This allows syncqt to work with paths that are symbolic links and real paths. Fixes: QTBUG-113295 Pick-to: 6.5 Change-Id: Ie7478b4accf279e8abf9f3849d18807cee99f085 Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
parent
a0923d5d3a
commit
4fa6cd8cea
@ -110,7 +110,7 @@ void printInternalError()
|
|||||||
|
|
||||||
std::filesystem::path normilizedPath(const std::string &path)
|
std::filesystem::path normilizedPath(const std::string &path)
|
||||||
{
|
{
|
||||||
return std::filesystem::path(std::filesystem::absolute(path).generic_string());
|
return std::filesystem::path(std::filesystem::weakly_canonical(path).generic_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user