mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibFileSystem+Everywhere: Return ByteString current_working_directory()
That is, return it *from* current_working_directory(), but I didn't have room. :^)
This commit is contained in:
parent
a7fbb7fd0b
commit
fb644d08ac
Notes:
sideshowbarker
2024-07-17 07:14:09 +09:00
Author: https://github.com/AtkinsSJ
Commit: fb644d08ac
Pull-request: https://github.com/SerenityOS/serenity/pull/22775
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 5 additions and 6 deletions
|
@ -23,10 +23,9 @@
|
|||
|
||||
namespace FileSystem {
|
||||
|
||||
ErrorOr<String> current_working_directory()
|
||||
ErrorOr<ByteString> current_working_directory()
|
||||
{
|
||||
auto cwd = TRY(Core::System::getcwd());
|
||||
return TRY(String::from_byte_string({ cwd }));
|
||||
return Core::System::getcwd();
|
||||
}
|
||||
|
||||
ErrorOr<String> absolute_path(StringView path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue