mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibFileSystem+Userland: Rename size() to size_from_stat()
This reflects what the functions does more accurately, and allows for adding functions to get sizes through other methods. This also corrects the return type of said function, as size_t may only hold sizes up to 4GB on 32-bit platforms.
This commit is contained in:
parent
d3c6e31bf3
commit
896f213c6f
5 changed files with 5 additions and 5 deletions
|
@ -71,7 +71,7 @@ ErrorOr<void> copy_directory(StringView destination_path, StringView source_path
|
|||
ErrorOr<void> copy_file_or_directory(StringView destination_path, StringView source_path, RecursionMode = RecursionMode::Allowed, LinkMode = LinkMode::Disallowed, AddDuplicateFileMarker = AddDuplicateFileMarker::Yes, PreserveMode = PreserveMode::Nothing);
|
||||
ErrorOr<void> move_file(StringView destination_path, StringView source_path, PreserveMode = PreserveMode::Nothing);
|
||||
ErrorOr<void> remove(StringView path, RecursionMode);
|
||||
ErrorOr<size_t> size(StringView path);
|
||||
ErrorOr<off_t> size_from_stat(StringView path);
|
||||
bool can_delete_or_move(StringView path);
|
||||
|
||||
ErrorOr<ByteString> read_link(StringView link_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue