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:
parent
5a3b195f6e
commit
ec66da7bf4
1 changed files with 10 additions and 9 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue