summaryrefslogtreecommitdiff
path: root/Userland/Utilities/userdel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/userdel.cpp')
-rw-r--r--Userland/Utilities/userdel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/userdel.cpp b/Userland/Utilities/userdel.cpp
index 90e56ef845..a2aa9ae5b2 100644
--- a/Userland/Utilities/userdel.cpp
+++ b/Userland/Utilities/userdel.cpp
@@ -8,7 +8,7 @@
#include <AK/DeprecatedString.h>
#include <LibCore/Account.h>
#include <LibCore/ArgsParser.h>
-#include <LibCore/File.h>
+#include <LibCore/DeprecatedFile.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
#include <unistd.h>
@@ -47,14 +47,14 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (access(target_account.home_directory().characters(), F_OK) == -1)
return 0;
- auto const real_path = Core::File::real_path_for(target_account.home_directory());
+ auto const real_path = Core::DeprecatedFile::real_path_for(target_account.home_directory());
if (real_path == "/") {
warnln("home directory is /, not deleted!");
return 12;
}
- if (auto result = Core::File::remove(real_path, Core::File::RecursionMode::Allowed); result.is_error()) {
+ if (auto result = Core::DeprecatedFile::remove(real_path, Core::DeprecatedFile::RecursionMode::Allowed); result.is_error()) {
warnln("{}", result.release_error());
return 12;
}