Lines Matching refs:DestPath
32 IN CONST CHAR16 *DestPath in IsBetweenFileSystem() argument
43 Test1 = StrStr(DestPath, L":"); in IsBetweenFileSystem()
50 Result = StringNoCaseCompare(&FullName, &DestPath); in IsBetweenFileSystem()
151 IN CONST CHAR16 *DestPath, in IsValidMove() argument
181 DestPathCopy = AllocateCopyPool(StrSize(DestPath), DestPath); in IsValidMove()
241 CHAR16 *DestPath; in GetDestinationLocation() local
246 DestPath = NULL; in GetDestinationLocation()
254 DestPath = AllocateZeroPool(StrSize(Cwd)); in GetDestinationLocation()
255 if (DestPath == NULL) { in GetDestinationLocation()
258 StrCpyS(DestPath, StrSize(Cwd) / sizeof(CHAR16), Cwd); in GetDestinationLocation()
259 while (PathRemoveLastItem(DestPath)) ; in GetDestinationLocation()
264 CurrentSize = StrSize(DestPath); in GetDestinationLocation()
265 StrnCatGrow(&DestPath, &CurrentSize, &DestParameter[1], 0); in GetDestinationLocation()
267 *DestPathPointer = DestPath; in GetDestinationLocation()
286 DestPath = AllocateZeroPool(NewSize); in GetDestinationLocation()
287 if (DestPath == NULL) { in GetDestinationLocation()
291 StrCpyS(DestPath, NewSize / sizeof(CHAR16), Cwd); in GetDestinationLocation()
292 if (DestPath[StrLen(DestPath)-1] != L'\\' && DestParameter[0] != L'\\') { in GetDestinationLocation()
293 StrCatS(DestPath, NewSize / sizeof(CHAR16), L"\\"); in GetDestinationLocation()
294 } else if (DestPath[StrLen(DestPath)-1] == L'\\' && DestParameter[0] == L'\\') { in GetDestinationLocation()
295 ((CHAR16*)DestPath)[StrLen(DestPath)-1] = CHAR_NULL; in GetDestinationLocation()
297 StrCatS(DestPath, NewSize / sizeof(CHAR16), DestParameter); in GetDestinationLocation()
299 ASSERT(DestPath == NULL); in GetDestinationLocation()
300 DestPath = StrnCatGrow(&DestPath, NULL, DestParameter, 0); in GetDestinationLocation()
301 if (DestPath == NULL) { in GetDestinationLocation()
322 DestPath = AllocateZeroPool(StrSize(Node->FullName)+sizeof(CHAR16)); in GetDestinationLocation()
323 if (DestPath == NULL) { in GetDestinationLocation()
327 StrCpyS(DestPath, (StrSize(Node->FullName)+sizeof(CHAR16)) / sizeof(CHAR16), Node->FullName); in GetDestinationLocation()
328 StrCatS(DestPath, (StrSize(Node->FullName)+sizeof(CHAR16)) / sizeof(CHAR16), L"\\"); in GetDestinationLocation()
339 *DestPathPointer = DestPath; in GetDestinationLocation()
357 IN CONST CHAR16 *DestPath, in MoveBetweenFileSystems() argument
366 ShellStatus = CopySingleFile (Node->FullName, DestPath, Resp, TRUE, L"mv"); in MoveBetweenFileSystems()
403 IN CONST CHAR16 **DestPath, in CreateFullDestPath() argument
409 if (FullDestPath == NULL || FileName == NULL || DestPath == NULL || *DestPath == NULL){ in CreateFullDestPath()
413 Size = StrSize(*DestPath) + StrSize(FileName); in CreateFullDestPath()
420 StrCpyS(*FullDestPath, Size / sizeof(CHAR16), *DestPath); in CreateFullDestPath()
442 IN CHAR16 *DestPath, in MoveWithinFileSystems() argument
455 if ((TempLocation = StrStr(DestPath, L":")) != NULL) { in MoveWithinFileSystems()
456 CopyMem(DestPath, TempLocation+1, StrSize(TempLocation+1)); in MoveWithinFileSystems()
462 NewSize = StrSize(DestPath); in MoveWithinFileSystems()
470 if (DestPath[0] != L'\\') { in MoveWithinFileSystems()
472 StrCatS(NewFileInfo->FileName, (NewSize - SIZE_OF_EFI_FILE_INFO) / sizeof(CHAR16), DestPath); in MoveWithinFileSystems()
474 StrCpyS(NewFileInfo->FileName, (NewSize - SIZE_OF_EFI_FILE_INFO) / sizeof(CHAR16), DestPath); in MoveWithinFileSystems()
529 CHAR16 *DestPath; in ValidateAndMoveFiles() local
542 DestPath = NULL; in ValidateAndMoveFiles()
575 …ShellStatus = GetDestinationLocation(CleanFilePathStr, &DestPath, FullCwd, (BOOLEAN)(FileList->Lin… in ValidateAndMoveFiles()
582 DestPath = PathCleanUpDirectories(DestPath); in ValidateAndMoveFiles()
583 if (DestPath == NULL) { in ValidateAndMoveFiles()
591 SHELL_FREE_NON_NULL(DestPath); in ValidateAndMoveFiles()
625 if (ShellIsDirectory(DestPath)==EFI_SUCCESS) { in ValidateAndMoveFiles()
626 CreateFullDestPath((CONST CHAR16 **)&DestPath, &FullDestPath, Node->FileName); in ValidateAndMoveFiles()
632 …if (!IsValidMove(Node->FullName, FullCwd, FullDestPath!=NULL? FullDestPath:DestPath, Node->Info->A… in ValidateAndMoveFiles()
637 ShellPrintEx(-1, -1, HiiOutput, Node->FullName, FullDestPath!=NULL? FullDestPath:DestPath); in ValidateAndMoveFiles()
642 if (!EFI_ERROR(ShellFileExists(FullDestPath!=NULL? FullDestPath:DestPath))) { in ValidateAndMoveFiles()
670 Status = ShellDeleteFileByName(FullDestPath!=NULL? FullDestPath:DestPath); in ValidateAndMoveFiles()
673 if (IsBetweenFileSystem(Node->FullName, FullCwd, DestPath)) { in ValidateAndMoveFiles()
674 …while (FullDestPath == NULL && DestPath != NULL && DestPath[0] != CHAR_NULL && DestPath[StrLen(Des… in ValidateAndMoveFiles()
675 DestPath[StrLen(DestPath) - 1] = CHAR_NULL; in ValidateAndMoveFiles()
677 Status = MoveBetweenFileSystems(Node, FullDestPath!=NULL? FullDestPath:DestPath, &Response); in ValidateAndMoveFiles()
679 Status = MoveWithinFileSystems(Node, DestPath, &Response); in ValidateAndMoveFiles()
711 SHELL_FREE_NON_NULL(DestPath); in ValidateAndMoveFiles()