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

(-)src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java (+5 lines)
Lines 671-676 Link Here
671
							String fullPathQuoted = PathUtility.enQuoteUnix(fullPath);
671
							String fullPathQuoted = PathUtility.enQuoteUnix(fullPath);
672
							int rv = runCommand("rm -rf "+fullPathQuoted, monitor); //$NON-NLS-1$
672
							int rv = runCommand("rm -rf "+fullPathQuoted, monitor); //$NON-NLS-1$
673
							ok = (rv==0);
673
							ok = (rv==0);
674
						} else if(e.id == ChannelSftp.SSH_FX_NO_SUCH_FILE) {
675
							// this could be a link to a directory too, if it really doesn't exist, this will throw an exception
676
							// this is just a workaround for bug 174690 as attrs.isLink() always seems to return false for soft/hard links 
677
							getChannel("SftpFileService.delete.rm").rm(fullPath); //$NON-NLS-1$
678
							ok=true;
674
						} else {
679
						} else {
675
							throw e;
680
							throw e;
676
						}
681
						}

Return to bug 174690