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