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:
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()
|
||||
{
|
||||
|
||||
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()
|
||||
|
|
Loading…
Add table
Reference in a new issue