Changeset 97395 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
- Timestamp:
- Nov 4, 2022 11:17:21 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 154395
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r96407 r97395 694 694 * into existing directories on the guest. This otherwise would fail (default): */ 695 695 else if (enmFileType == KFsObjType_Directory) 696 { 697 /* Make sure that if the source is a directory, that we append a trailing delimiter to it, 698 * so that it gets copied *into* the destination directory as a whole, and not just it's contents. */ 699 strDestinationPath = UIPathOperations::addTrailingDelimiters(strDestinationPath); 696 700 aFlags << strDirectoryFlags; 701 } 697 702 else 698 703 aFlags << strFileFlags; … … 744 749 } 745 750 751 QString strDestinationPath = hostDestinationPath; 746 752 QString strDirectoryFlags("CopyIntoExisting,Recursive,FollowLinks"); 747 753 QString strFileFlags; … … 760 766 761 767 if (fileType(fileInfo) == KFsObjType_Directory) 768 { 769 /* Make sure that if the source is a directory, that we append a trailing delimiter to the destination, 770 * so that the source directory gets copied *into* the destination directory as a whole, and not 771 * just it's contents. */ 772 strDestinationPath = UIPathOperations::addTrailingDelimiters(strDestinationPath); 762 773 aFlags << strDirectoryFlags; 774 } 763 775 else 764 776 aFlags << strFileFlags; 765 777 } 766 778 767 CProgress progress = m_comGuestSession.CopyFromGuest(sourcePaths, aFilters, aFlags, hostDestinationPath);779 CProgress progress = m_comGuestSession.CopyFromGuest(sourcePaths, aFilters, aFlags, strDestinationPath); 768 780 if (!checkGuestSession()) 769 781 return;
Note:
See TracChangeset
for help on using the changeset viewer.