Changeset 103587 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Feb 27, 2024 1:06:51 PM (14 months ago)
- svn:sync-xref-src-repo-rev:
- 161940
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py
r103337 r103587 301 301 def rmTree(self, sDir, cMsTimeout = 30000): 302 302 """ 303 Recursively removes all files and sub directories including the given directory. 304 """ 305 fRc = True; 306 if self.oTxsSession is not None: 303 Recursively removes all files and subdirectories including the given directory. 304 """ 305 fRc = True; 306 if self.oTxsSession is not None: 307 reporter.log("rmTree (%s) using txs" % sDir); 307 308 fRc = self.oTxsSession.syncRmTree(sDir, cMsTimeout); 308 309 else: 309 310 try: 310 shutil.rmtree(sDir, ignore_errors=True); 311 reporter.log("rmTree (%s) using shutil.rmtree function" % sDir); 312 shutil.rmtree(sDir); 311 313 except: 312 314 fRc = False;
Note:
See TracChangeset
for help on using the changeset viewer.