mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Everywhere: Use LibFileSystem
where trivial
This commit is contained in:
parent
edab0cbf41
commit
1d24f394c6
115 changed files with 275 additions and 228 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <AK/QuickSort.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
|
||||
[[noreturn]] static void report_parsing_error(StringView message, StringView filename, StringView input, size_t offset)
|
||||
{
|
||||
|
@ -138,7 +139,7 @@ static HashTable<DeprecatedString> import_stack;
|
|||
Optional<Interface&> Parser::resolve_import(auto path)
|
||||
{
|
||||
auto include_path = LexicalPath::join(import_base_path, path).string();
|
||||
if (!Core::DeprecatedFile::exists(include_path))
|
||||
if (!FileSystem::exists(include_path))
|
||||
report_parsing_error(DeprecatedString::formatted("{}: No such file or directory", include_path), filename, input, lexer.tell());
|
||||
|
||||
auto real_path = Core::DeprecatedFile::real_path_for(include_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue