1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

AK: Add LexicalPath::prepend()

This commit is contained in:
Tim Schumacher 2021-11-21 19:55:44 +01:00 committed by Andreas Kling
parent 5f3e9886f7
commit 07351762c7
2 changed files with 6 additions and 0 deletions

View file

@ -164,6 +164,11 @@ LexicalPath LexicalPath::append(StringView value) const
return LexicalPath::join(m_string, value);
}
LexicalPath LexicalPath::prepend(StringView value) const
{
return LexicalPath::join(value, m_string);
}
LexicalPath LexicalPath::parent() const
{
return append("..");