1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

Kernel: Add Custody::try_create_absolute_path()

This adds a way to get a Custody's absolute path as KString, which
enables it to fail gracefully on OOM.
This commit is contained in:
Max Wipfli 2021-07-06 12:40:35 +02:00 committed by Andreas Kling
parent 1f792faf34
commit 95f769ea51
2 changed files with 31 additions and 0 deletions

View file

@ -30,6 +30,7 @@ public:
Inode& inode() { return *m_inode; }
const Inode& inode() const { return *m_inode; }
StringView name() const { return m_name->view(); }
OwnPtr<KString> try_create_absolute_path() const;
String absolute_path() const;
int mount_flags() const { return m_mount_flags; }