1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 17:45:24 +02:00

Fix FTP absolute pathes reported as //dir/file

This commit is contained in:
Martin Oberhuber 2006-08-17 10:20:34 +00:00
parent 5a3b195f6e
commit ec66da7bf4

View file

@ -83,16 +83,17 @@ public class FTPHostFile implements IHostFile
public String getAbsolutePath() public String getAbsolutePath()
{ {
if (isRoot()) {
StringBuffer path = new StringBuffer(getParentPath()); return getName();
if (!_parentPath.endsWith("/")) } else {
{ StringBuffer path = new StringBuffer(getParentPath());
path.append('/'); if (!_parentPath.endsWith("/"))
{
path.append('/');
}
path.append(getName());
return path.toString();
} }
path.append(getName());
return path.toString();
} }
public long getSize() public long getSize()