1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

[189681] patch for cleaner use of separator

This commit is contained in:
David McKnight 2007-06-04 20:37:49 +00:00
parent 9792857149
commit 9aedb11c6d

View file

@ -726,15 +726,11 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
else
{
StringBuffer buf = new StringBuffer(remoteParent);
if (remoteParent.trim().equals("/")) //$NON-NLS-1$
{
buf.append(name);
}
else
{
buf.append(getSeparator(remoteParent));
buf.append(name);
String sep = getSeparator(remoteParent);
if (sep.length()>0 && !remoteParent.endsWith(sep)) {
buf.append(sep);
}
buf.append(name);
de = getElementFor(buf.toString());
}
dsQueryCommand(de, IUniversalDataStoreConstants.C_QUERY_GET_REMOTE_OBJECT, monitor);