diff options
Diffstat (limited to 'Userland/Utilities/mv.cpp')
-rw-r--r-- | Userland/Utilities/mv.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Utilities/mv.cpp b/Userland/Utilities/mv.cpp index 772549f93f..4a30d350ff 100644 --- a/Userland/Utilities/mv.cpp +++ b/Userland/Utilities/mv.cpp @@ -7,7 +7,7 @@ #include <AK/DeprecatedString.h> #include <AK/LexicalPath.h> #include <LibCore/ArgsParser.h> -#include <LibCore/File.h> +#include <LibCore/DeprecatedFile.h> #include <LibCore/System.h> #include <LibMain/Main.h> #include <stdio.h> @@ -69,17 +69,17 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) new_path = combined_new_path.characters(); } - if (no_clobber && Core::File::exists(new_path)) + if (no_clobber && Core::DeprecatedFile::exists(new_path)) continue; rc = rename(old_path.characters(), new_path.characters()); if (rc < 0) { if (errno == EXDEV) { - auto result = Core::File::copy_file_or_directory( + auto result = Core::DeprecatedFile::copy_file_or_directory( new_path, old_path, - Core::File::RecursionMode::Allowed, - Core::File::LinkMode::Disallowed, - Core::File::AddDuplicateFileMarker::No); + Core::DeprecatedFile::RecursionMode::Allowed, + Core::DeprecatedFile::LinkMode::Disallowed, + Core::DeprecatedFile::AddDuplicateFileMarker::No); if (result.is_error()) { warnln("mv: could not move '{}': {}", old_path, static_cast<Error const&>(result.error())); |