summaryrefslogtreecommitdiff
path: root/Userland/Utilities/mv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/mv.cpp')
-rw-r--r--Userland/Utilities/mv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/mv.cpp b/Userland/Utilities/mv.cpp
index 6962a6a3e7..1e917f69b7 100644
--- a/Userland/Utilities/mv.cpp
+++ b/Userland/Utilities/mv.cpp
@@ -59,7 +59,7 @@ int main(int argc, char** argv)
String combined_new_path;
const char* new_path = original_new_path;
if (S_ISDIR(st.st_mode)) {
- auto old_basename = LexicalPath(old_path).basename();
+ auto old_basename = LexicalPath::basename(old_path);
combined_new_path = String::formatted("{}/{}", original_new_path, old_basename);
new_path = combined_new_path.characters();
}