VirtualBox

Ignore:
Timestamp:
Dec 8, 2021 2:55:45 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148744
Message:

Guest Control: Resolved a @todo: Implemented DirectoryCopyFlag_Recursive + DirectoryCopyFlag_FollowLinks and no longer do this implicitly internally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r92681 r92822  
    18411841        reporter.log2('Copying guest dir "%s" to host "%s"' % (limitString(oTest.sSrc), limitString(oTest.sDst)));
    18421842        try:
     1843            if self.oTstDrv.fpApiVer >= 7.0:
     1844                ## @todo Make the following new flags implicit for 7.0 for now. Develop dedicated tests for this later and remove.
     1845                if vboxcon.DirectoryCopyFlag_Recursive not in oTest.afFlags:
     1846                    oTest.afFlags.extend([ vboxcon.DirectoryCopyFlag_Recursive ]);
     1847                ## @todo Ditto.
     1848                if vboxcon.DirectoryCopyFlag_FollowLinks not in oTest.afFlags:
     1849                    oTest.afFlags.extend([ vboxcon.DirectoryCopyFlag_FollowLinks ]);
    18431850            oCurProgress = oGuestSession.directoryCopyFromGuest(oTest.sSrc, oTest.sDst, oTest.afFlags);
    18441851        except:
     
    18981905    def gctrlCopyDirTo(self, oGuestSession, sSrc, sDst, afFlags, fIsError):
    18991906        """
    1900         Helper function to copy a directory tree from the host to the guest.
     1907        Helper function to copy a directory (tree) from the host to the guest.
    19011908        """
    19021909        reporter.log2('Copying host directory "%s" to guest "%s" (flags %s)' % (limitString(sSrc), limitString(sDst), afFlags));
    19031910        try:
     1911            if self.oTstDrv.fpApiVer >= 7.0:
     1912                ## @todo Make the following new flags implicit for 7.0 for now. Develop dedicated tests for this later and remove.
     1913                if vboxcon.DirectoryCopyFlag_Recursive not in afFlags:
     1914                    afFlags.extend([ vboxcon.DirectoryCopyFlag_Recursive ]);
     1915                ## @todo Ditto.
     1916                if vboxcon.DirectoryCopyFlag_FollowLinks not in afFlags:
     1917                    afFlags.extend([ vboxcon.DirectoryCopyFlag_FollowLinks ]);
    19041918            oCurProgress = oGuestSession.directoryCopyToGuest(sSrc, sDst, afFlags);
    19051919        except:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette