Summary: | [Supertransfer] Subfolders not copied when doing first copy from dstore to Local | ||
---|---|---|---|
Product: | [Tools] Target Management | Reporter: | Kevin Doyle <kjdoyle> |
Component: | RSE | Assignee: | Xuan Chen <xuanchen> |
Status: | CLOSED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> |
Severity: | normal | ||
Priority: | P3 | CC: | dmcknigh, xuanchen |
Version: | 2.0 | ||
Target Milestone: | 2.0.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Kevin Doyle
2007-09-07 13:22:50 EDT
*** Bug 202674 has been marked as a duplicate of this bug. *** The reason for this problem is the following: In UniversalFileTransferUtility#copyWorkspaceResourcesToRemote(SystemWorkspaceResourceSet workspaceSet, IRemoteFile targetFolder, IProgressMonitor monitor, boolean checkForCollisions), if (doCompressedTransfer && doSuperTransferPreference && !destInArchive && !isTargetLocal) { compressedCopyWorkspaceResourceToRemote(directory, newTargetFolder, monitor); } else { IResource[] children = directory.members(); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SystemWorkspaceResourceSet childSet = new SystemWorkspaceResourceSet(children); SystemRemoteResourceSet childResults = copyWorkspaceResourcesToRemote(childSet, newTargetFolder, monitor, checkForCollision); if (childResults == null) { return null; } if (childResults.hasMessage()) { resultSet.setMessage(childResults.getMessage()); } } The "IResource[] children = directory.members();" call returned an empty array even directory already has children in the file system. I added "directory.refreshLocal(IResource.DEPTH_ONE, monitor);" before it, and it seems solve the problem. I verified the scenario in 2.0.1 RC1 driver, and it worked properly. Kevin, could you please verify it as well? Thanks. Verified fixed with 2.0.1RC1. |