[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tm-cvs-commit] adushistova org.eclipse.tm.rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/internal/services/ssh/files/scp ScpFileService.java

Update of /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/internal/services/ssh/files/scp
In directory dev2:/tmp/cvs-serv2358/src/org/eclipse/rse/internal/services/ssh/files/scp

Modified Files:
	ScpFileService.java 
Log Message:
[349947] Applied Simon's patch for scp service.

Index: ScpFileService.java
===================================================================
RCS file: /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/internal/services/ssh/files/scp/ScpFileService.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ScpFileService.java	6 Jan 2011 08:55:04 -0000	1.2
--- ScpFileService.java	7 Jul 2011 14:47:38 -0000	1.3
***************
*** 10,13 ****
--- 10,14 ----
   * Anna Dushistova (Mentor Graphics) - [331213][scp] Provide UI-less scp IFileService in org.eclipse.rse.services.ssh
   * Anna Dushistova (Mentor Graphics) - [331249][scp] incorrect home while logging in as root
+  * Simon Bernard   (Sierra Wireless) - [349947][scp] with scp IRemoteFile.exist() returns always true
   *******************************************************************************/
  package org.eclipse.rse.internal.services.ssh.files.scp;
***************
*** 495,501 ****
  			ScpFileAttr attr) {
  		boolean isRoot = (remotePath == null || remotePath.length() == 0);
! 		if (attr == null)
! 			return new SftpHostFile(isRoot ? null : remotePath, fileName,
! 					false, isRoot, false, 0, 0);
  
  		boolean isLink = attr.isLink();
--- 496,505 ----
  			ScpFileAttr attr) {
  		boolean isRoot = (remotePath == null || remotePath.length() == 0);
! 		if (attr == null) {
! 			SftpHostFile sftpHostFile = new SftpHostFile(isRoot ? null : remotePath, fileName, false,
! 					isRoot, false, 0, 0);
! 			sftpHostFile.setExists(false);
! 			return sftpHostFile;
! 		}
  
  		boolean isLink = attr.isLink();