1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +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()
{
StringBuffer path = new StringBuffer(getParentPath());
if (!_parentPath.endsWith("/"))
{
path.append('/');
if (isRoot()) {
return getName();
} else {
StringBuffer path = new StringBuffer(getParentPath());
if (!_parentPath.endsWith("/"))
{
path.append('/');
}
path.append(getName());
return path.toString();
}
path.append(getName());
return path.toString();
}
public long getSize()