1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibCore: Use a StringView for the file path in File::remove

This allows us to use our nice syscall wrappers, avoids some accidental
string copying, and starts to unlink us from the old DeprecatedString.
This commit is contained in:
Tim Schumacher 2022-12-23 14:33:05 +01:00 committed by Tim Flynn
parent 9805f73704
commit 8455d58a44
4 changed files with 8 additions and 14 deletions

View file

@ -93,7 +93,7 @@ public:
static ErrorOr<DeprecatedString> read_link(DeprecatedString const& link_path);
static ErrorOr<void> link_file(DeprecatedString const& dst_path, DeprecatedString const& src_path);
static ErrorOr<void> remove(DeprecatedString const& path, RecursionMode);
static ErrorOr<void> remove(StringView path, RecursionMode);
virtual bool open(OpenMode) override;