View | Details | Raw Unified | Return to bug 194204
Collapse All | Expand All

(-)src/org/eclipse/rse/internal/services/files/ftp/FTPService.java (+7 lines)
Lines 43-48 Link Here
43
 * Javier Montalvo Orus (Symbian) - [187096] Drag&Drop + Copy&Paste shows error message on FTP connection
43
 * Javier Montalvo Orus (Symbian) - [187096] Drag&Drop + Copy&Paste shows error message on FTP connection
44
 * Javier Montalvo Orus (Symbian) - [187531] Improve exception thrown when Login Failed on FTP
44
 * Javier Montalvo Orus (Symbian) - [187531] Improve exception thrown when Login Failed on FTP
45
 * Javier Montalvo Orus (Symbian) - [187862] Incorrect Error Message when creating new file in read-only directory
45
 * Javier Montalvo Orus (Symbian) - [187862] Incorrect Error Message when creating new file in read-only directory
46
 * Javier Montalvo Orus (Symbian) - [194204] Renaming Files/Folders moves them sometimes
46
 ********************************************************************************/
47
 ********************************************************************************/
47
48
48
package org.eclipse.rse.internal.services.files.ftp;
49
package org.eclipse.rse.internal.services.files.ftp;
Lines 812-817 Link Here
812
			try {
813
			try {
813
				FTPClient ftpClient = getFTPClient(); 
814
				FTPClient ftpClient = getFTPClient(); 
814
				
815
				
816
				if(!ftpClient.changeWorkingDirectory(remoteParent))
817
				{
818
					throw new RemoteFileIOException(new Exception(ftpClient.getReplyString()));
819
				}
820
				
821
				
815
				String source = remoteParent.endsWith(String.valueOf(getSeparator())) ? remoteParent + oldName : remoteParent + getSeparator() + oldName;
822
				String source = remoteParent.endsWith(String.valueOf(getSeparator())) ? remoteParent + oldName : remoteParent + getSeparator() + oldName;
816
				
823
				
817
				success = ftpClient.rename(source, newName);
824
				success = ftpClient.rename(source, newName);

Return to bug 194204