mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:58:12 +00:00
LibCore: Move Core::Stream::File::exists()
to Core::File
`Core::Stream::File` shouldn't hold any utility methods that are unrelated to constructing a `Core::Stream`, so let's just replace the existing `Core::File::exists` with the nicer looking implementation.
This commit is contained in:
parent
bd272e638c
commit
2fc2025f49
10 changed files with 14 additions and 18 deletions
|
@ -234,7 +234,7 @@ int main()
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (!Core::File::exists("components.ini")) {
|
||||
if (!Core::File::exists("components.ini"sv)) {
|
||||
warnln("\e[31mError:\e[0m There is no 'components.ini' in the current working directory.");
|
||||
warnln(" It can be generated by running CMake with 'cmake ../.. -G Ninja'");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue