Community
Participate
Working Groups
After doing a copy with supertransfer enabled the sub folders of the folder I copied are empty. DStore to Local is causing this problem. Local to DStore works fine for me. Steps to Reproduce: 1. Start with a CLEAN workspace. Connect to a dstore machine. 2. Find a folder that has sub folders that aren't empty. Copy that folder to Local. 3. Expand the folder and the sub folders are empty. -> If you do the same copy again then all the files are copied fine. It's only the initial copy that doesn't work. -----------Enter bugs above this line----------- TM 2.0.1 Testing installation : eclipse-SDK-3.3 RSE install : Dev Driver java.runtime : Sun 1.5.0_11-b03 os.name: : Windows XP, Service Pack 2 ------------------------------------------------
*** 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.