View | Details | Raw Unified | Return to bug 233461 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rse/internal/services/files/ftp/FTPService.java (-1 / +14 lines)
Lines 76-81 Link Here
76
 * Radoslav Gerganov (ProSyst) - [230919] IFileService.delete() should not return a boolean
76
 * Radoslav Gerganov (ProSyst) - [230919] IFileService.delete() should not return a boolean
77
 * Martin Oberhuber (Wind River) - [218040] FTP should support permission modification
77
 * Martin Oberhuber (Wind River) - [218040] FTP should support permission modification
78
 * Martin Oberhuber (Wind River) - [234045] FTP Permission Error Handling
78
 * Martin Oberhuber (Wind River) - [234045] FTP Permission Error Handling
79
 * David McKnight   (IBM)        - [233461] FTP user home needs to be treated properly
79
 ********************************************************************************/
80
 ********************************************************************************/
80
81
81
package org.eclipse.rse.internal.services.files.ftp;
82
package org.eclipse.rse.internal.services.files.ftp;
Lines 1001-1007 Link Here
1001
			//Returning null in this case is safest, see also SftpFileService.
1002
			//Returning null in this case is safest, see also SftpFileService.
1002
			return null;
1003
			return null;
1003
		}
1004
		}
1004
		return new FTPHostFile("",_userHome,true,true,0,0,true); //$NON-NLS-1$
1005
	
1006
		String fullName = PathUtility.normalizeUnknown(_userHome);
1007
		String sep = PathUtility.getSeparator(fullName);
1008
		int lastIndex = fullName.lastIndexOf(sep);
1009
		if (lastIndex > 0){
1010
			String parentPath = fullName.substring(0, fullName.lastIndexOf(sep));
1011
			String name = fullName.substring(fullName.lastIndexOf(sep) + 1);
1012
		
1013
			return new FTPHostFile(parentPath, name,true,false,0,0,true); //$NON-NLS-1$
1014
		}
1015
		else {
1016
			return new FTPHostFile("",_userHome,true,false,0,0,true); //$NON-NLS-1$
1017
		}
1005
	}
1018
	}
1006
1019
1007
	/*
1020
	/*

Return to bug 233461