mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:27:35 +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:
parent
9805f73704
commit
8455d58a44
4 changed files with 8 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue