diff --git a/Userland/Utilities/mv.cpp b/Userland/Utilities/mv.cpp index 306ae82c4a..89e7d281c9 100644 --- a/Userland/Utilities/mv.cpp +++ b/Userland/Utilities/mv.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include @@ -76,14 +75,14 @@ ErrorOr serenity_main(Main::Arguments arguments) rc = rename(old_path.characters(), new_path.characters()); if (rc < 0) { if (errno == EXDEV) { - auto result = Core::DeprecatedFile::copy_file_or_directory( + auto result = FileSystem::copy_file_or_directory( new_path, old_path, - Core::DeprecatedFile::RecursionMode::Allowed, - Core::DeprecatedFile::LinkMode::Disallowed, - Core::DeprecatedFile::AddDuplicateFileMarker::No); + FileSystem::RecursionMode::Allowed, + FileSystem::LinkMode::Disallowed, + FileSystem::AddDuplicateFileMarker::No); if (result.is_error()) { - warnln("mv: could not move '{}': {}", old_path, static_cast(result.error())); + warnln("mv: could not move '{}': {}", old_path, result.error()); return 1; } rc = unlink(old_path.characters());