]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
This refactors 3 functions out of ShellCommandLib and puts them into a new library...
[mirror_edk2.git] / ShellPkg / Library / UefiShellLevel2CommandsLib / Mv.c
index dc9ef64d7f317c14fa77ff5b167411d6bebee051..5afcea23107fd62d9955d4447eaa171b25dfa170 100644 (file)
@@ -148,7 +148,7 @@ GetDestinationLocation(
       return (SHELL_OUT_OF_RESOURCES);\r
     }\r
     StrCpy(DestPath, Cwd);\r
-    while (ChopLastSlash(DestPath)) ;\r
+    while (PathRemoveLastItem(DestPath)) ;\r
     *DestPathPointer =  DestPath;\r
     return (SHELL_SUCCESS);\r
   }\r
@@ -268,7 +268,7 @@ ValidateAndMoveFiles(
   if (ShellStatus != SHELL_SUCCESS) {\r
     return (ShellStatus);\r
   }\r
-  DestPath = CleanPath(DestPath);\r
+  DestPath = PathCleanUpDirectories(DestPath);\r
 \r
   HiiOutput   = HiiGetString (gShellLevel2HiiHandle, STRING_TOKEN (STR_MV_OUTPUT), NULL);\r
   HiiResultOk = HiiGetString (gShellLevel2HiiHandle, STRING_TOKEN (STR_GEN_RES_OK), NULL);\r