mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibFileSystem: Add a helper to get the file size from fstat
This commit is contained in:
committed by
Andrew Kaster
parent
896f213c6f
commit
a70d79ff98
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/implicitfield Commit: https://github.com/SerenityOS/serenity/commit/a70d79ff98 Pull-request: https://github.com/SerenityOS/serenity/pull/22810 Reviewed-by: https://github.com/ADKaster ✅
@@ -72,6 +72,7 @@ ErrorOr<void> copy_file_or_directory(StringView destination_path, StringView sou
|
||||
ErrorOr<void> move_file(StringView destination_path, StringView source_path, PreserveMode = PreserveMode::Nothing);
|
||||
ErrorOr<void> remove(StringView path, RecursionMode);
|
||||
ErrorOr<off_t> size_from_stat(StringView path);
|
||||
ErrorOr<off_t> size_from_fstat(int fd);
|
||||
bool can_delete_or_move(StringView path);
|
||||
|
||||
ErrorOr<ByteString> read_link(StringView link_path);
|
||||
|
||||
Reference in New Issue
Block a user