Changeset 97345 in vbox
- Timestamp:
- Oct 31, 2022 11:25:51 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154343
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r97343 r97345 1602 1602 { "--follow", 'L', RTGETOPT_REQ_NOTHING }, /* Kept for backwards-compatibility (VBox < 7.0). */ 1603 1603 { "--dereference", 'L', RTGETOPT_REQ_NOTHING }, 1604 { "--no-replace", 'n', RTGETOPT_REQ_NOTHING }, /* like "-n" via cp. */ 1604 1605 { "--recursive", 'R', RTGETOPT_REQ_NOTHING }, 1605 { "--target-directory", 't', RTGETOPT_REQ_STRING } 1606 { "--target-directory", 't', RTGETOPT_REQ_STRING }, 1607 { "--update", 'u', RTGETOPT_REQ_NOTHING } /* like "-u" via cp. */ 1606 1608 }; 1607 1609 … … 1615 1617 bool fFollow = false; 1616 1618 bool fRecursive = false; 1619 bool fUpdate = false; /* Whether to copy the file only if it's newer than the target. */ 1620 bool fNoReplace = false; /* Only copy the file if it does not exist yet. */ 1617 1621 1618 1622 int vrc = VINF_SUCCESS; … … 1631 1635 break; 1632 1636 1637 case 'n': 1638 fNoReplace = true; 1639 break; 1640 1633 1641 case 'R': 1634 1642 fRecursive = true; … … 1638 1646 pszDst = ValueUnion.psz; 1639 1647 fDstMustBeDir = true; 1648 break; 1649 1650 case 'u': 1651 fUpdate = true; 1640 1652 break; 1641 1653 … … 1742 1754 if (fFollow) 1743 1755 strCopyFlags += "FollowLinks,"; 1756 if (fUpdate && !fIsDir) /* Only affects files. */ 1757 strCopyFlags += "Update,"; 1758 if (fNoReplace && !fIsDir) /* Ditto. */ 1759 strCopyFlags += "NoReplace,"; 1744 1760 aCopyFlags.push_back(Bstr(strCopyFlags).raw()); 1745 1761 }
Note:
See TracChangeset
for help on using the changeset viewer.