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:
parent
1f792faf34
commit
95f769ea51
2 changed files with 31 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue