mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
Notes:
sideshowbarker
2024-07-18 10:14:09 +09:00
Author: https://github.com/MaxWipfli
Commit: 95f769ea51
Pull-request: https://github.com/SerenityOS/serenity/pull/8492
Reviewed-by: https://github.com/alimpfard
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