From: <kp...@us...> - 2010-04-28 13:12:13
|
Revision: 17704 http://jedit.svn.sourceforge.net/jedit/?rev=17704&view=rev Author: kpouer Date: 2010-04-28 13:12:06 +0000 (Wed, 28 Apr 2010) Log Message: ----------- fix the VFSFile created by the ftp plugin that were returning the full path instead of filename Modified Paths: -------------- plugins/FTP/trunk/ftp/SFtpConnection.java Modified: plugins/FTP/trunk/ftp/SFtpConnection.java =================================================================== --- plugins/FTP/trunk/ftp/SFtpConnection.java 2010-04-28 13:02:02 UTC (rev 17703) +++ plugins/FTP/trunk/ftp/SFtpConnection.java 2010-04-28 13:12:06 UTC (rev 17704) @@ -142,7 +142,8 @@ FtpVFS.FtpDirectoryEntry returnValue = null; try { SftpATTRS attrs = sftp.stat(path); - returnValue = createDirectoryEntry(path, attrs); + String name = MiscUtilities.getFileName(path); + returnValue = createDirectoryEntry(name, attrs); returnValue.setPath(path); returnValue.setDeletePath(path); } catch(SftpException e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |