mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibFileSystem+Userland: Return ByteString from real_path()
This commit is contained in:
parent
cdf17efb9a
commit
56c5ffe398
Notes:
sideshowbarker
2024-07-16 23:13:25 +09:00
Author: https://github.com/AtkinsSJ
Commit: 56c5ffe398
Pull-request: https://github.com/SerenityOS/serenity/pull/22775
Reviewed-by: https://github.com/ADKaster ✅
25 changed files with 44 additions and 40 deletions
|
@ -259,9 +259,9 @@ Icon FileIconProvider::icon_for_path(StringView path, mode_t mode)
|
|||
auto raw_symlink_target_or_error = FileSystem::read_link(path);
|
||||
if (raw_symlink_target_or_error.is_error())
|
||||
return s_symlink_icon;
|
||||
auto raw_symlink_target = raw_symlink_target_or_error.release_value();
|
||||
auto raw_symlink_target = raw_symlink_target_or_error.release_value().to_byte_string();
|
||||
|
||||
String target_path;
|
||||
ByteString target_path;
|
||||
if (raw_symlink_target.starts_with('/')) {
|
||||
target_path = raw_symlink_target;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue