Update filesystemHelpers.cpp

This commit is contained in:
Kseniia Sumarokova 2021-08-19 12:14:41 +03:00 committed by GitHub
parent b03f851cba
commit c68793cd12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ bool symlinkStartsWith(const std::filesystem::path & path, const std::filesystem
auto absolute_path = std::filesystem::absolute(path);
absolute_path = absolute_path.lexically_normal(); /// Normalize path.
auto absolute_prefix_path = std::filesystem::absolute(prefix_path);
absolute_pefix_path = absolute_prefix_path.lexically_normal(); /// Normalize path.
absolute_prefix_path = absolute_prefix_path.lexically_normal(); /// Normalize path.
auto [_, prefix_path_mismatch_it] = std::mismatch(absolute_path.begin(), absolute_path.end(), absolute_prefix_path.begin(), absolute_prefix_path.end());