1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 16:02:43 +01:00

Factor out the Unix-specific parts of canonPathInner

This prepares the code to also support Windows paths in the next commit.
This commit is contained in:
John Ericson 2024-01-29 17:16:18 -05:00
parent 60936f28e5
commit 4531585275
3 changed files with 45 additions and 11 deletions

View file

@ -8,7 +8,7 @@ CanonPath CanonPath::root = CanonPath("/");
static std::string absPathPure(std::string_view path)
{
return canonPathInner(path, [](auto &, auto &){});
return canonPathInner<UnixPathTrait>(path, [](auto &, auto &){});
}
CanonPath::CanonPath(std::string_view raw)