From 3214ec9046d24f56a007cf0b1c02985d9c4aaee5 Mon Sep 17 00:00:00 2001 From: Xuan Chen Date: Thu, 6 Sep 2007 19:21:25 +0000 Subject: [PATCH] [201790] fix: [dnd] Copy and Paste across connections to a Drive doesn't work --- .../files/ui/resources/UniversalFileTransferUtility.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/UniversalFileTransferUtility.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/UniversalFileTransferUtility.java index 616734671fa..f659131677c 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/UniversalFileTransferUtility.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/UniversalFileTransferUtility.java @@ -23,6 +23,7 @@ * Xuan Chen (IBM) - [187548] Editor shows incorrect file name after renaming file on Linux dstore * David McKnight (IBM) - [191472] should not use super transfer with SSH/FTP Folder Copy and Paste * Xuan Chen (IBM) - [191367] with supertransfer on, Drag & Drop Folder from DStore to DStore doesn't work + * Xuan Chen (IBM) - [201790] [dnd] Copy and Paste across connections to a Drive doesn't work ********************************************************************************/ package org.eclipse.rse.files.ui.resources; @@ -1018,7 +1019,11 @@ public class UniversalFileTransferUtility } else { - newPathBuf.append(targetFolder.getSeparatorChar()); + int newPathBufLenth = newPathBuf.length(); + if (newPathBufLenth > 0 && !((newPathBuf.charAt(newPathBufLenth - 1) == targetFolder.getSeparatorChar()))) + { + newPathBuf.append(targetFolder.getSeparatorChar()); + } } List resources = workspaceSet.getResourceSet();