mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibFileSystem+Everywhere: Return ByteString from read_link()
This commit is contained in:
parent
cac66aeb53
commit
8d80841e9c
11 changed files with 34 additions and 43 deletions
|
@ -259,7 +259,7 @@ 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().to_byte_string();
|
||||
auto raw_symlink_target = raw_symlink_target_or_error.release_value();
|
||||
|
||||
ByteString target_path;
|
||||
if (raw_symlink_target.starts_with('/')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue