mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibFileSystem+Everywhere: Return ByteString from read_link()
This commit is contained in:
parent
cac66aeb53
commit
8d80841e9c
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/AtkinsSJ
Commit: 8d80841e9c
Pull-request: https://github.com/SerenityOS/serenity/pull/22775
Reviewed-by: https://github.com/ADKaster ✅
11 changed files with 34 additions and 43 deletions
|
@ -7,8 +7,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/ByteString.h>
|
||||
#include <AK/Error.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -74,7 +74,7 @@ ErrorOr<void> remove(StringView path, RecursionMode);
|
|||
ErrorOr<size_t> size(StringView path);
|
||||
bool can_delete_or_move(StringView path);
|
||||
|
||||
ErrorOr<String> read_link(StringView link_path);
|
||||
ErrorOr<ByteString> read_link(StringView link_path);
|
||||
ErrorOr<void> link_file(StringView destination_path, StringView source_path);
|
||||
|
||||
bool looks_like_shared_library(StringView path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue