Changeset 92912 in vbox
- Timestamp:
- Dec 15, 2021 8:08:43 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148868
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r92900 r92912 614 614 return; 615 615 } 616 616 QString strDirectoryFlags("CopyIntoExisting,Recursive,FollowLinks"); 617 QString strFileFlags; 617 618 foreach (const QString &strSource, sourcePaths) 618 619 { … … 622 623 { 623 624 /* If the source is an directory, make sure to add the appropriate flag to make copying work 624 * into existing directories on the guest. This otherwise would fail (default) .*/625 * into existing directories on the guest. This otherwise would fail (default): */ 625 626 if (RTFS_IS_DIRECTORY(ObjInfo.Attr.fMode)) 626 { 627 aFlags.append("CopyIntoExisting"); 628 aFlags.append("Recursive"); 629 aFlags.append("FollowLinks"); 630 } 631 else /* Make sure to keep the vector in sync with the number of source items by adding an empty entry. */ 632 aFlags.append(""); 627 aFlags << strDirectoryFlags; 628 else 629 aFlags << strFileFlags; 633 630 } 634 631 else … … 679 676 } 680 677 678 QString strDirectoryFlags("CopyIntoExisting,Recursive,FollowLinks"); 679 QString strFileFlags; 681 680 foreach (const QString &strSource, sourcePaths) 682 681 { … … 692 691 } 693 692 694 KFsObjType eType = fileType(fileInfo); 695 if (eType == KFsObjType_Directory) 696 { 697 aFlags.append("CopyIntoExisting"); 698 aFlags.append("Recursive"); 699 aFlags.append("FollowLinks"); 700 } 701 else /* Make sure to keep the vector in sync with the number of source items by adding an empty entry. */ 702 aFlags.append(""); 693 if (fileType(fileInfo) == KFsObjType_Directory) 694 aFlags << strDirectoryFlags; 695 else 696 aFlags << strFileFlags; 703 697 } 704 698
Note:
See TracChangeset
for help on using the changeset viewer.