1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 08:05:24 +02:00

[211653] fix: Copy virtual directory with nested directory of tar file did not work

This commit is contained in:
Xuan Chen 2007-11-30 22:29:48 +00:00
parent dff29f4fb5
commit 58600211f3

View file

@ -19,6 +19,7 @@
* Xuan Chen (IBM) - [209828] Need to move the Create operation to a job.
* Xuan Chen (IBM) - [209825] Update SystemTarHandler so that archive operations could be cancelable.
* Xuan Chen (IBM) - [211551] NPE when moving multiple folders from one tar file to another tar file
* Xuan Chen (IBM) - [211653] Copy virtual directory with nested directory of tar file did not work
*******************************************************************************/
package org.eclipse.rse.services.clientserver.archiveutils;
@ -1015,7 +1016,11 @@ public class SystemTarHandler implements ISystemArchiveHandler {
for (int i = 0; i < children.length; i++) {
VirtualChild tempChild = children[i];
String childPath = topDirPath + File.separator + tempChild.name;
String childPath = topDirPath;
if (!tempChild.isDirectory)
{
childPath = topDirPath + File.separator + tempChild.name;
}
File childFile = new File(childPath);
boolean returnCode = false;