mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 07:52:43 +01:00
Cleanup
This commit is contained in:
parent
7f576f5dfe
commit
c257c82447
3 changed files with 17 additions and 6 deletions
|
|
@ -13,6 +13,13 @@ CanonPath::CanonPath(std::string_view raw, const CanonPath & root)
|
|||
: path(absPath((Path) raw, root.abs()))
|
||||
{ }
|
||||
|
||||
CanonPath::CanonPath(const std::vector<std::string> & elems)
|
||||
: path("/")
|
||||
{
|
||||
for (auto & s : elems)
|
||||
push(s);
|
||||
}
|
||||
|
||||
CanonPath CanonPath::fromCwd(std::string_view path)
|
||||
{
|
||||
return CanonPath(unchecked_t(), absPath((Path) path));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue