summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibManual/Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibManual/Node.cpp')
-rw-r--r--Userland/Libraries/LibManual/Node.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibManual/Node.cpp b/Userland/Libraries/LibManual/Node.cpp
index 57b596aeb2..044b4143b7 100644
--- a/Userland/Libraries/LibManual/Node.cpp
+++ b/Userland/Libraries/LibManual/Node.cpp
@@ -12,7 +12,7 @@
#include <AK/Optional.h>
#include <AK/StringView.h>
#include <AK/URL.h>
-#include <LibCore/File.h>
+#include <LibCore/DeprecatedFile.h>
#include <LibCore/Stream.h>
#include <LibManual/Path.h>
@@ -49,7 +49,7 @@ ErrorOr<NonnullRefPtr<PageNode>> Node::try_create_from_query(Vector<StringView,
Optional<NonnullRefPtr<PageNode>> maybe_page;
for (auto const& section : sections) {
auto const page = TRY(try_make_ref_counted<PageNode>(section, TRY(String::from_utf8(first_query_parameter))));
- if (Core::File::exists(TRY(page->path()))) {
+ if (Core::DeprecatedFile::exists(TRY(page->path()))) {
maybe_page = page;
break;
}
@@ -62,7 +62,7 @@ ErrorOr<NonnullRefPtr<PageNode>> Node::try_create_from_query(Vector<StringView,
auto second_query_parameter = *query_parameter_iterator;
auto section = TRY(SectionNode::try_create_from_number(first_query_parameter));
auto const page = TRY(try_make_ref_counted<PageNode>(section, TRY(String::from_utf8(second_query_parameter))));
- if (Core::File::exists(TRY(page->path())))
+ if (Core::DeprecatedFile::exists(TRY(page->path())))
return page;
return Error::from_string_literal("Page doesn't exist in section");
}