mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user