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:
parent
60936f28e5
commit
4531585275
3 changed files with 45 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue