mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +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
4 changed files with 5 additions and 6 deletions
|
@ -234,7 +234,7 @@ int main()
|
|||
auto current_working_directory = FileSystem::current_working_directory();
|
||||
if (current_working_directory.is_error())
|
||||
return 1;
|
||||
auto lexical_cwd = LexicalPath(current_working_directory.release_value().to_byte_string());
|
||||
auto lexical_cwd = LexicalPath(current_working_directory.release_value());
|
||||
auto& parts = lexical_cwd.parts_view();
|
||||
if (parts.size() < 2 || parts[parts.size() - 2] != "Build") {
|
||||
warnln("\e[31mError:\e[0m This program needs to be executed from inside 'Build/*'.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue