mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibFileSystem+Everywhere: Return ByteString from read_link()
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/8d80841e9c Pull-request: https://github.com/SerenityOS/serenity/pull/22775 Reviewed-by: https://github.com/ADKaster ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user