summaryrefslogtreecommitdiff
path: root/Userland/Shell/AST.cpp
diff options
context:
space:
mode:
authorCameron Youell <cameronyouell@gmail.com>2023-03-22 02:35:30 +1100
committerLinus Groh <mail@linusgroh.de>2023-03-21 19:03:21 +0000
commit1d24f394c61d8e2af216c95303014d0554165f72 (patch)
treee577780754109c9b38a81cfc815d35f19c68eb9d /Userland/Shell/AST.cpp
parentedab0cbf41d80e805fe93ee0c4cc5021a1e599c1 (diff)
downloadserenity-1d24f394c61d8e2af216c95303014d0554165f72.zip
Everywhere: Use `LibFileSystem` where trivial
Diffstat (limited to 'Userland/Shell/AST.cpp')
-rw-r--r--Userland/Shell/AST.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp
index 09ddfd6956..4ba3f98700 100644
--- a/Userland/Shell/AST.cpp
+++ b/Userland/Shell/AST.cpp
@@ -12,8 +12,8 @@
#include <AK/String.h>
#include <AK/StringBuilder.h>
#include <AK/URL.h>
-#include <LibCore/DeprecatedFile.h>
#include <LibCore/EventLoop.h>
+#include <LibFileSystem/FileSystem.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -676,7 +676,7 @@ ErrorOr<void> BarewordLiteral::highlight_in_editor(Line::Editor& editor, Shell&
editor.stylize({ m_position.start_offset, m_position.end_offset }, { Line::Style::Foreground(Line::Style::XtermColor::Cyan) });
}
}
- if (Core::DeprecatedFile::exists(m_text)) {
+ if (FileSystem::exists(m_text)) {
auto realpath = shell.resolve_path(m_text.bytes_as_string_view());
auto url = URL::create_with_file_scheme(realpath);
url.set_host(shell.hostname);
@@ -3209,7 +3209,7 @@ ErrorOr<void> Juxtaposition::highlight_in_editor(Line::Editor& editor, Shell& sh
path_builder.append(bareword_value);
auto path = path_builder.to_deprecated_string();
- if (Core::DeprecatedFile::exists(path)) {
+ if (FileSystem::exists(path)) {
auto realpath = shell.resolve_path(path);
auto url = URL::create_with_file_scheme(realpath);
url.set_host(shell.hostname);