### Eclipse Workspace Patch 1.0 #P org.eclipse.rse.services.ssh Index: src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java =================================================================== RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java,v retrieving revision 1.20 diff -u -r1.20 SftpFileService.java --- src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java 10 Aug 2007 11:37:27 -0000 1.20 +++ src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java 24 Aug 2007 23:50:04 -0000 @@ -671,6 +671,11 @@ String fullPathQuoted = PathUtility.enQuoteUnix(fullPath); int rv = runCommand("rm -rf "+fullPathQuoted, monitor); //$NON-NLS-1$ ok = (rv==0); + } else if(e.id == ChannelSftp.SSH_FX_NO_SUCH_FILE) { + // this could be a link to a directory too, if it really doesn't exist, this will throw an exception + // this is just a workaround for bug 174690 as attrs.isLink() always seems to return false for soft/hard links + getChannel("SftpFileService.delete.rm").rm(fullPath); //$NON-NLS-1$ + ok=true; } else { throw e; }