summaryrefslogtreecommitdiff
path: root/Userland/Utilities/rm.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/Utilities/rm.cpp
parentedab0cbf41d80e805fe93ee0c4cc5021a1e599c1 (diff)
downloadserenity-1d24f394c61d8e2af216c95303014d0554165f72.zip
Everywhere: Use `LibFileSystem` where trivial
Diffstat (limited to 'Userland/Utilities/rm.cpp')
-rw-r--r--Userland/Utilities/rm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/rm.cpp b/Userland/Utilities/rm.cpp
index 4a34af01fa..107b9374c5 100644
--- a/Userland/Utilities/rm.cpp
+++ b/Userland/Utilities/rm.cpp
@@ -7,8 +7,8 @@
#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <LibCore/ArgsParser.h>
-#include <LibCore/DeprecatedFile.h>
#include <LibCore/System.h>
+#include <LibFileSystem/FileSystem.h>
#include <LibMain/Main.h>
#include <stdio.h>
#include <unistd.h>
@@ -43,7 +43,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
continue;
}
- auto result = Core::DeprecatedFile::remove(path, recursive ? Core::DeprecatedFile::RecursionMode::Allowed : Core::DeprecatedFile::RecursionMode::Disallowed);
+ auto result = FileSystem::remove(path, recursive ? FileSystem::RecursionMode::Allowed : FileSystem::RecursionMode::Disallowed);
if (result.is_error()) {
auto error = result.release_error();